Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 2543033002: Add texture swizzle back to command buffer. (Closed)
Patch Set: add swizzle value negative test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 77000c5037eee2a85806b6bb6250b366d81f2f26..3a34afa97a67c3747128f02da7d7ca0f3a853325 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -1491,6 +1491,13 @@ void FeatureInfo::EnableES3Validators() {
validators_.texture_sized_texture_filterable_internal_format.AddValue(
GL_BGRA8_EXT);
}
+
+ if (!IsWebGLContext()) {
+ validators_.texture_parameter.AddValue(GL_TEXTURE_SWIZZLE_R);
+ validators_.texture_parameter.AddValue(GL_TEXTURE_SWIZZLE_G);
+ validators_.texture_parameter.AddValue(GL_TEXTURE_SWIZZLE_B);
+ validators_.texture_parameter.AddValue(GL_TEXTURE_SWIZZLE_A);
+ }
}
bool FeatureInfo::IsWebGLContext() const {
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698