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 2fad0053b50fcf7c655d36c7efde44a5f0034b62..554607d0715033f4b39906f46dcf184280d4a80c 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -3195,6 +3195,9 @@ void GLES2DecoderImpl::Destroy(bool have_context) { |
group_ = NULL; |
} |
+ // Keep the context current, since the surface destructor might clean up |
+ // resources. |
+ surface_ = NULL; |
epenner
2013/05/28 23:36:56
This looks good but see have_context above. It loo
|
if (context_.get()) { |
context_->ReleaseCurrent(NULL); |
context_ = NULL; |