diff options
Diffstat (limited to 'gpu/command_buffer/tests/gl_manager.cc')
-rw-r--r-- | gpu/command_buffer/tests/gl_manager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc index 8988349..23779ea 100644 --- a/gpu/command_buffer/tests/gl_manager.cc +++ b/gpu/command_buffer/tests/gl_manager.cc @@ -404,8 +404,8 @@ void GLManager::Destroy() { gles2_helper_.reset(); command_buffer_.reset(); if (decoder_.get()) { - decoder_->MakeCurrent(); - decoder_->Destroy(true); + bool have_context = decoder_->GetGLContext()->MakeCurrent(surface_.get()); + decoder_->Destroy(have_context); decoder_.reset(); } } |