| Index: gpu/command_buffer/tests/gl_manager.cc
|
| diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
|
| index 8988349eaa4be81a22f38e1b44edd5c6d2e46d01..15ace43c6ffdadb66507821730329c222df206f1 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_->MakeCurrent();
|
| + decoder_->Destroy(have_context);
|
| decoder_.reset();
|
| }
|
| }
|
|
|