If the platform requests setting up the resource context without making the context current, don’t attempt to create the GL native interface. (flutter/engine#3059)
This commit is contained in:
@@ -128,12 +128,13 @@ void PlatformView::SetupResourceContextOnIOThreadPerform(
|
|||||||
if (!current) {
|
if (!current) {
|
||||||
LOG(WARNING)
|
LOG(WARNING)
|
||||||
<< "WARNING: Could not setup an OpenGL context on the resource loader.";
|
<< "WARNING: Could not setup an OpenGL context on the resource loader.";
|
||||||
|
latch->Signal();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
blink::ResourceContext::Set(GrContext::Create(
|
blink::ResourceContext::Set(GrContext::Create(
|
||||||
GrBackend::kOpenGL_GrBackend,
|
GrBackend::kOpenGL_GrBackend,
|
||||||
reinterpret_cast<GrBackendContext>(GrGLCreateNativeInterface())));
|
reinterpret_cast<GrBackendContext>(GrGLCreateNativeInterface())));
|
||||||
|
|
||||||
latch->Signal();
|
latch->Signal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user