Bug 732143 - WebGL on maemo6 N9 does not work anymore after FBO switch 720467. r=joe
authorOleg Romashin <romaxa@gmail.com>
Fri, 02 Mar 2012 11:28:06 -0600
changeset 88356 68b1f715d7c9d2a71b823f1b5f563a81882cdf72
parent 88355 e4006a8627b6b3981663689577629d8c748bb75a
child 88357 fae3603a8d1da9ab41cebcf442fdca8b651ce84a
push id157
push userMs2ger@gmail.com
push dateWed, 07 Mar 2012 19:27:10 +0000
reviewersjoe
bugs732143, 720467
milestone13.0a1
Bug 732143 - WebGL on maemo6 N9 does not work anymore after FBO switch 720467. r=joe
gfx/gl/GLContextProviderEGL.cpp
--- a/gfx/gl/GLContextProviderEGL.cpp
+++ b/gfx/gl/GLContextProviderEGL.cpp
@@ -2625,21 +2625,17 @@ GLContextProviderEGL::CreateOffscreen(co
     return glContext.forget();
 #elif defined(MOZ_X11)
     nsRefPtr<GLContextEGL> glContext =
         GLContextEGL::CreateEGLPixmapOffscreenContext(aSize, aFormat, true);
 
     if (!glContext) {
         return nsnull;
     }
-    if (!glContext->GetSharedContext()) {
-        // no point in returning anything if sharing failed, we can't
-        // render from this
-        return nsnull;
-    }
+
     if (!gUseBackingSurface && !glContext->ResizeOffscreenFBO(glContext->OffscreenActualSize(), true)) {
         // we weren't able to create the initial
         // offscreen FBO, so this is dead
         return nsnull;
     }
     return glContext.forget();
 #else
     return nsnull;