Index: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc |
diff --git a/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc b/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc |
index cc18157c5251202277574e863167f5cfd2269e8f..5daf17838020e817184ead2faf07c087bf24c38f 100644 |
--- a/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc |
+++ b/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc |
@@ -136,7 +136,7 @@ bool WebGraphicsContext3DInProcessCommandBufferImpl::MaybeInitializeGL() { |
} |
real_gl_ = context_->GetImplementation(); |
- setGLInterface(real_gl_); |
+ SetGLInterface(real_gl_); |
real_gl_->TraceBeginCHROMIUM("WebGraphicsContext3D", |
"InProcessContext"); |
@@ -149,7 +149,9 @@ bool |
WebGraphicsContext3DInProcessCommandBufferImpl::InitializeOnCurrentThread() { |
if (!MaybeInitializeGL()) |
return false; |
- return context_ && !isContextLost(); |
+ return context_ && |
+ context_->GetImplementation()->GetGraphicsResetStatusKHR() == |
+ GL_NO_ERROR; |
} |
void WebGraphicsContext3DInProcessCommandBufferImpl::SetLock(base::Lock* lock) { |