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

Unified Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 6028005: Make CopyTexImage2D and CopyTexSubImage2D fail if... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
Index: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h (revision 69969)
+++ gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h (working copy)
@@ -415,6 +415,10 @@
GL_VERTEX_ATTRIB_ARRAY_POINTER,
};
+static GLint valid_zero_only_table[] = {
+ 0,
+};
+
Validators::Validators()
: attachment(
valid_attachment_table, arraysize(valid_attachment_table)),
@@ -524,7 +528,9 @@
valid_vertex_attribute_table, arraysize(
valid_vertex_attribute_table)),
vertex_pointer(
- valid_vertex_pointer_table, arraysize(valid_vertex_pointer_table)) {
+ valid_vertex_pointer_table, arraysize(valid_vertex_pointer_table)),
+ zero_only(
+ valid_zero_only_table, arraysize(valid_zero_only_table)) {
}
#endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_ // NOLINT
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_autogen.h ('k') | gpu/command_buffer/service/renderbuffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698