summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 7a81586..28d6557 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2621,8 +2621,10 @@ void GLES2DecoderImpl::Destroy() {
offscreen_saved_color_texture_->Invalidate();
}
- if (context_.get())
+ if (context_.get()) {
+ context_->ReleaseCurrent(NULL);
context_->Destroy();
+ }
context_ = NULL;
offscreen_target_frame_buffer_.reset();