From c6ebea64bf5443f600995f6500488bc2623749fc Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Fri, 5 Oct 2018 02:01:20 +0000 Subject: [PATCH] Bug 1496430 - Check GL context for RenderCompositorANGLE. r=sotaro MozReview-Commit-ID: 7ncgoJOpZs9 Differential Revision: https://phabricator.services.mozilla.com/D7804 --HG-- extra : moz-landing-system : lando --- gfx/webrender_bindings/RenderCompositorANGLE.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gfx/webrender_bindings/RenderCompositorANGLE.cpp b/gfx/webrender_bindings/RenderCompositorANGLE.cpp index 20d0dabd44f7..cdee866a41ed 100644 --- a/gfx/webrender_bindings/RenderCompositorANGLE.cpp +++ b/gfx/webrender_bindings/RenderCompositorANGLE.cpp @@ -111,7 +111,10 @@ RenderCompositorANGLE::Initialize() if (!SutdownEGLLibraryIfNecessary()) { return false; } - RenderThread::Get()->SharedGL(); + if (!RenderThread::Get()->SharedGL()) { + gfxCriticalNote << "[WR] failed to get shared GL context."; + return false; + } mDevice = GetDeviceOfEGLDisplay();