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 d72d5d241ee6ad18d6d046139476dea4fe4301fa..f5282154a8621464afda391463fe9cd676646f05 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -10149,11 +10149,15 @@ void GLES2DecoderImpl::DoBindTexImage2DCHROMIUM( |
return; |
} |
- if (!gl_image->BindTexImage()) { |
- LOCAL_SET_GL_ERROR( |
- GL_INVALID_OPERATION, |
- "glBindTexImage2DCHROMIUM", "fail to bind image with the given ID"); |
- return; |
+ { |
+ ScopedGLErrorSuppressor suppressor( |
+ "GLES2DecoderImpl::DoBindTexImage2DCHROMIUM", this); |
+ if (!gl_image->BindTexImage()) { |
+ LOCAL_SET_GL_ERROR( |
+ GL_INVALID_OPERATION, |
+ "glBindTexImage2DCHROMIUM", "fail to bind image with the given ID"); |
+ return; |
+ } |
} |
gfx::Size size = gl_image->GetSize(); |