Bug 713369 - don't try to fall back to another GL provider, *at all* - r=jgilbert

This commit is contained in:
Benoit Jacob 2012-03-26 15:20:35 -04:00
parent fa875e1658
commit 343931424b

View File

@ -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;
}