summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gpu_processor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/gpu_processor.cc')
-rw-r--r--gpu/command_buffer/service/gpu_processor.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gpu_processor.cc b/gpu/command_buffer/service/gpu_processor.cc
index 993e81e..7872b22 100644
--- a/gpu/command_buffer/service/gpu_processor.cc
+++ b/gpu/command_buffer/service/gpu_processor.cc
@@ -70,11 +70,15 @@ bool GPUProcessor::InitializeCommon(const gfx::Size& size,
}
void GPUProcessor::DestroyCommon() {
+ bool have_context = false;
if (decoder_.get()) {
+ have_context = decoder_->MakeCurrent();
decoder_->Destroy();
decoder_.reset();
}
+ group_.Destroy(have_context);
+
if (context_.get()) {
context_->Destroy();
context_.reset();