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

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: '' 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') | no next file » | 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 110991)
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc (working copy)
@@ -5716,7 +5716,8 @@
SetGLError(GL_INVALID_ENUM, "glPixelStorei: pname GL_INVALID_ENUM");
return error::kNoError;
}
- if (!validators_->pixel_store_alignment.IsValid(param)) {
+ if (GL_PACK_REVERSE_ROW_ORDER_ANGLE != pname &&
greggman 2011/11/29 21:32:27 this might be more future proof as a switch?
+ !validators_->pixel_store_alignment.IsValid(param)) {
SetGLError(GL_INVALID_VALUE, "glPixelSTore: param GL_INVALID_VALUE");
return error::kNoError;
}
@@ -5725,6 +5726,8 @@
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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698