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

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

Issue 2741613004: Handle TEXTURE_SWIZZLE_* in gpu::gles2::Texture::SetParameterf (Closed)
Patch Set: Created 3 years, 9 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index e9307a24f28378fb45d183d4142303cdd1fde6cc..35f80f4e49c5aee83643f57f0cd53f92060bc7ef 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -1384,10 +1384,13 @@ GLenum Texture::SetParameterf(
case GL_TEXTURE_BASE_LEVEL:
case GL_TEXTURE_MAX_LEVEL:
case GL_TEXTURE_USAGE_ANGLE:
- {
- GLint iparam = static_cast<GLint>(std::round(param));
- return SetParameteri(feature_info, pname, iparam);
- }
+ case GL_TEXTURE_SWIZZLE_R:
+ case GL_TEXTURE_SWIZZLE_G:
+ case GL_TEXTURE_SWIZZLE_B:
+ case GL_TEXTURE_SWIZZLE_A: {
+ GLint iparam = static_cast<GLint>(std::round(param));
+ return SetParameteri(feature_info, pname, iparam);
+ }
case GL_TEXTURE_MIN_LOD:
sampler_state_.min_lod = param;
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698