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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.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 | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gles2_cmd_utils.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index 817efc124367008ba1f9efdd241d5a69f192076d..74ccfecf44df16dff15e0dc92924df4e132eb9a5 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -428,6 +428,14 @@ int GLES2Util::GLGetNumValuesReturned(int id) const {
return 1;
case GL_TEXTURE_MAX_ANISOTROPY_EXT:
return 1;
+ case GL_TEXTURE_SWIZZLE_R:
+ return 1;
+ case GL_TEXTURE_SWIZZLE_G:
+ return 1;
+ case GL_TEXTURE_SWIZZLE_B:
+ return 1;
+ case GL_TEXTURE_SWIZZLE_A:
+ return 1;
// -- glGetVertexAttrib
case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:
@@ -1951,4 +1959,3 @@ bool ContextCreationAttribHelper::Parse(const std::vector<int32_t>& attribs) {
} // namespace gles2
} // namespace gpu
-
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698