Chromium Code Reviews| Index: gpu/command_buffer/service/context_group.cc |
| diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc |
| index a78799d7e3a458f10b1286e75eb0ac114fec5f05..8be715b993a4bd52ec95d8e3f4039a2c4b3d10de 100644 |
| --- a/gpu/command_buffer/service/context_group.cc |
| +++ b/gpu/command_buffer/service/context_group.cc |
| @@ -553,9 +553,11 @@ void ContextGroup::Destroy(GLES2Decoder* decoder, bool have_context) { |
| memory_tracker_ = NULL; |
| - passthrough_resources_->Destroy(have_context); |
| - passthrough_resources_.reset(); |
| - ReportProgress(); |
| + if (passthrough_resources_ != nullptr) { |
|
jbauman
2017/01/18 21:32:09
if (passthrough__resources_) {
Geoff Lang
2017/01/19 15:40:06
Done.
|
| + passthrough_resources_->Destroy(have_context); |
| + passthrough_resources_.reset(); |
| + ReportProgress(); |
| + } |
| } |
| uint32_t ContextGroup::GetMemRepresented() const { |