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

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

Issue 8513017: Add GL_ANGLE_pack_reverse_row_order to command buffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebaseline Created 9 years, 1 month 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/service/gl_utils.h ('k') | third_party/khronos/GLES2/gl2ext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder.cc (revision 112221)
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc (working copy)
@@ -5801,15 +5801,24 @@
SetGLError(GL_INVALID_ENUM, "glPixelStorei: pname GL_INVALID_ENUM");
return error::kNoError;
}
- if (!validators_->pixel_store_alignment.IsValid(param)) {
- SetGLError(GL_INVALID_VALUE, "glPixelSTore: param GL_INVALID_VALUE");
- return error::kNoError;
+ switch (pname) {
+ case GL_PACK_ALIGNMENT:
+ case GL_UNPACK_ALIGNMENT:
+ if (!validators_->pixel_store_alignment.IsValid(param)) {
+ SetGLError(GL_INVALID_VALUE,
+ "glPixelSTore: param GL_INVALID_VALUE");
+ return error::kNoError;
+ }
+ default:
+ break;
}
glPixelStorei(pname, param);
switch (pname) {
case GL_PACK_ALIGNMENT:
pack_alignment_ = param;
break;
+ case GL_PACK_REVERSE_ROW_ORDER_ANGLE:
+ break;
case GL_UNPACK_ALIGNMENT:
unpack_alignment_ = param;
break;
« no previous file with comments | « gpu/command_buffer/service/gl_utils.h ('k') | third_party/khronos/GLES2/gl2ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698