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

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

Issue 2582553002: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: . Created 3 years, 11 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
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 56b5ef233e2816c273cce90d7d993f3803f7c7b4..98dd7b81888dc6f50a1ac7efdd2c56ff00af1c4f 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -4849,6 +4849,10 @@ void GLES2DecoderImpl::Destroy(bool have_context) {
gpu_tracer_.reset();
}
+ // Destroy the surface before the context, some surface destructors make GL
+ // calls.
+ surface_ = nullptr;
+
if (group_.get()) {
group_->Destroy(this, have_context);
group_ = NULL;
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698