提交 a3024c7a 编写于 作者: C Chinmay Garde 提交者: GitHub

If the platform requests setting up the resource context without making the...

If the platform requests setting up the resource context without making the context current, don’t attempt to create the GL native interface. (#3059)
上级 8eab44c6
......@@ -128,12 +128,13 @@ void PlatformView::SetupResourceContextOnIOThreadPerform(
if (!current) {
LOG(WARNING)
<< "WARNING: Could not setup an OpenGL context on the resource loader.";
latch->Signal();
return;
}
blink::ResourceContext::Set(GrContext::Create(
GrBackend::kOpenGL_GrBackend,
reinterpret_cast<GrBackendContext>(GrGLCreateNativeInterface())));
latch->Signal();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册