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 91036 68b1f715d7c9d2a71b823f1b5f563a81882cdf72
parent 91035 e4006a8627b6b3981663689577629d8c748bb75a
child 91037 fae3603a8d1da9ab41cebcf442fdca8b651ce84a
push id783
push userlsblakk@mozilla.com
push dateTue, 24 Apr 2012 17:33:42 +0000
treeherdermozilla-beta@11faed19f136 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjoe
bugs732143, 720467
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;