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

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

Issue 15925007: Virtual context MakeCurrent tweaks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: release surface before context in GLESCmdDecoder::Destroy() Created 7 years, 7 months 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
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698