From 360755d6c8822fda21600a42880f5cef54e8082f Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Mon, 26 Sep 2016 12:24:04 -0700 Subject: [PATCH] =?UTF-8?q?If=20the=20platform=20requests=20setting=20up?= =?UTF-8?q?=20the=20resource=20context=20without=20making=20the=20context?= =?UTF-8?q?=20current,=20don=E2=80=99t=20attempt=20to=20create=20the=20GL?= =?UTF-8?q?=20native=20interface.=20(flutter/engine#3059)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/src/flutter/shell/common/platform_view.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/common/platform_view.cc b/engine/src/flutter/shell/common/platform_view.cc index 7f16ad99246..ec4b709abf4 100644 --- a/engine/src/flutter/shell/common/platform_view.cc +++ b/engine/src/flutter/shell/common/platform_view.cc @@ -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(GrGLCreateNativeInterface()))); - latch->Signal(); }