From 343931424b8ff9bf77b5edfc77b8ccf73822a3a0 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 26 Mar 2012 15:20:35 -0400 Subject: [PATCH] Bug 713369 - don't try to fall back to another GL provider, *at all* - r=jgilbert --- content/canvas/src/WebGLContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/canvas/src/WebGLContext.cpp b/content/canvas/src/WebGLContext.cpp index a7b9dca33ec..f6f088b9dfb 100644 --- a/content/canvas/src/WebGLContext.cpp +++ b/content/canvas/src/WebGLContext.cpp @@ -491,7 +491,7 @@ WebGLContext::SetDimensions(PRInt32 width, PRInt32 height) // if we want EGL, try it now if (!gl && (preferEGL || useANGLE) && !preferOpenGL) { gl = gl::GLContextProviderEGL::CreateOffscreen(gfxIntSize(width, height), format); - if (gl && !InitAndValidateGL()) { + if (!gl || !InitAndValidateGL()) { LogMessage("Error during ANGLE OpenGL ES initialization"); return NS_ERROR_FAILURE; }