forked from firka/flutter
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) {
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user