Bug 615976 - Fixes for support for multisampled Linux/GLX GLContexts - r=bjacob
authorJeff Gilbert <jgilbert@mozilla.com>
Wed, 19 Oct 2011 15:09:57 -0400
changeset 79616 69dfebdcfdd3f2660873b01ddd355ea16bd90e78
parent 79615 16849a9b474588215bc98f9b50f3900becb5123a
child 79617 bf09dbe3fcd74c455ce5b6196b1ee752089410d5
push id506
push userclegnitto@mozilla.com
push dateWed, 09 Nov 2011 02:03:18 +0000
treeherdermozilla-aurora@63587fc7bb93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs615976
milestone10.0a1
Bug 615976 - Fixes for support for multisampled Linux/GLX GLContexts - r=bjacob
gfx/thebes/GLContextProviderGLX.cpp
--- a/gfx/thebes/GLContextProviderGLX.cpp
+++ b/gfx/thebes/GLContextProviderGLX.cpp
@@ -1233,32 +1233,32 @@ DONE_CREATING_PIXMAP:
     return glContext.forget();
 }
 
 already_AddRefed<GLContext>
 GLContextProviderGLX::CreateOffscreen(const gfxIntSize& aSize,
                                       const ContextFormat& aFormat)
 {
     ContextFormat actualFormat(aFormat);
-    actualFormat.samples = 0;
+    // actualFormat.samples = 0;
 
     nsRefPtr<GLContextGLX> glContext =
         CreateOffscreenPixmapContext(aSize, actualFormat, 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 (!glContext->ResizeOffscreenFBO(aSize)) {
+    if (!glContext->ResizeOffscreenFBO(aSize, true)) {
         // we weren't able to create the initial
         // offscreen FBO, so this is dead
         return nsnull;
     }
 
     return glContext.forget();
 }