Bug 884057 - Fix a memory leak in GLContextProviderGLX: was not destroying pixmaps used for offscreen contexts - r=jgilbert
authorBenoit Jacob <bjacob@mozilla.com>
Sun, 16 Jun 2013 22:03:12 -0400
changeset 136535 7431d7b9751f940c6ab9bc441ac45bae7c0ac380
parent 136534 16f123ef89fa3806123ad8e344aa6c63e7af0024
child 136536 fc6b2673c2a95adbf1ffc5e08206f93bc67f2562
push id24887
push userryanvm@gmail.com
push dateWed, 26 Jun 2013 20:33:45 +0000
treeherdermozilla-central@3b955f306226 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs884057
milestone25.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 884057 - Fix a memory leak in GLContextProviderGLX: was not destroying pixmaps used for offscreen contexts - r=jgilbert
gfx/gl/GLContextProviderGLX.cpp
--- a/gfx/gl/GLContextProviderGLX.cpp
+++ b/gfx/gl/GLContextProviderGLX.cpp
@@ -1382,17 +1382,17 @@ DONE_CREATING_PIXMAP:
         GLContextGLX* shareContext = GetGlobalContextGLX(flag);
 
         glContext = GLContextGLX::CreateGLContext(dummyCaps,
                                                   shareContext,
                                                   true,
                                                   display,
                                                   glxpixmap,
                                                   cfgs[chosenIndex],
-                                                  false,
+                                                  true,
                                                   libToUse,
                                                   xsurface);
     }
 
     return glContext.forget();
 }
 
 already_AddRefed<GLContext>