Index: content/common/gpu/client/context_provider_command_buffer.cc |
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc |
index 2f00de1fe296877762620733ff3c02dcad436d66..58e34b6431795a18818a84cafde51f9889987eba 100644 |
--- a/content/common/gpu/client/context_provider_command_buffer.cc |
+++ b/content/common/gpu/client/context_provider_command_buffer.cc |
@@ -137,7 +137,7 @@ class GrContext* ContextProviderCommandBuffer::GrContext() { |
gr_context_.reset(new GrContextForWebGraphicsContext3D(context3d_.get())); |
// If GlContext is already lost, also abandon the new GrContext. |
- if (IsContextLost()) |
+ if (gr_context_->get() && IsContextLost()) |
gr_context_->get()->abandonContext(); |
return gr_context_->get(); |