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

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

Issue 1555523002: WebGL: remove validation code for vertexAttribPointer and vertexAttribIPointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused validations Created 5 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_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 3e603215a90a762a173ba31ef0904fe74f8bc6f8..1c9ebe3b10d5dad2d1072c555378b93573db6458 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -8762,7 +8762,8 @@ error::Error GLES2DecoderImpl::HandleVertexAttribIPointer(
if (state_.vertex_attrib_manager.get() ==
state_.default_vertex_attrib_manager.get()) {
LOCAL_SET_GL_ERROR(
- GL_INVALID_VALUE, "glVertexAttribIPointer", "no array buffer bound");
+ GL_INVALID_OPERATION,
+ "glVertexAttribIPointer", "no array buffer bound");
return error::kNoError;
} else if (c.offset != 0) {
LOCAL_SET_GL_ERROR(
@@ -8848,7 +8849,8 @@ error::Error GLES2DecoderImpl::HandleVertexAttribPointer(
if (state_.vertex_attrib_manager.get() ==
state_.default_vertex_attrib_manager.get()) {
LOCAL_SET_GL_ERROR(
- GL_INVALID_VALUE, "glVertexAttribPointer", "no array buffer bound");
+ GL_INVALID_OPERATION,
+ "glVertexAttribPointer", "no array buffer bound");
return error::kNoError;
} else if (c.offset != 0) {
LOCAL_SET_GL_ERROR(

Powered by Google App Engine
This is Rietveld 408576698