mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
692aabce8f
commit
360755d6c8
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user