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 7219e3dd5ba70ef229a39add01f9a5b5545b8e5b..f298e0096d00e348032c2b2c0443202c7cfe7a7d 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -5739,7 +5739,7 @@ error::Error GLES2DecoderImpl::HandlePixelStorei( |
error::Error GLES2DecoderImpl::HandlePostSubBufferCHROMIUM( |
uint32 immediate_data_size, const gles2::PostSubBufferCHROMIUM& c) { |
TRACE_EVENT0("gpu", "GLES2DecoderImpl::HandlePostSubBufferCHROMIUM"); |
- if (!surface_->SupportsPostSubBuffer()) { |
+ if (!context_->HasExtension("GL_CHROMIUM_post_sub_buffer")) { |
SetGLError(GL_INVALID_OPERATION, |
"glPostSubBufferCHROMIUM: command not supported by surface"); |
return error::kNoError; |