diff --git a/content/canvas/src/WebGLContext.cpp b/content/canvas/src/WebGLContext.cpp index 7ae9a2ba125..e4aa832bffd 100644 --- a/content/canvas/src/WebGLContext.cpp +++ b/content/canvas/src/WebGLContext.cpp @@ -473,14 +473,6 @@ WebGLContext::SetDimensions(PRInt32 width, PRInt32 height) gl = nsnull; } } - - // if that failed, and we weren't already preferring EGL, try it now. - if (!gl && !(preferEGL || useANGLE)) { - gl = gl::GLContextProviderEGL::CreateOffscreen(gfxIntSize(width, height), format); - if (gl && !InitAndValidateGL()) { - gl = nsnull; - } - } #else // other platforms just use whatever the default is if (!gl && useOpenGL) {