Bug 565287: Properly initialize mOGLLibrary on GLContectProviderCGL. r=bas
authorBenoit Jacob <bjacob@mozilla.com>
Wed, 12 May 2010 18:56:40 +0200
changeset 42212 d9900a280f59015e6e02ba196eba2bd2146fb12c
parent 42211 eb83008784f18904e6e7b32f30b5bc487cfbd3eb
child 42213 b28ec304976f4a1df9222a23b8b2165a8ccae299
push id13230
push userbschouten@mozilla.com
push dateWed, 12 May 2010 16:57:30 +0000
treeherdermozilla-central@d9900a280f59 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas
bugs565287
milestone1.9.3a5pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 565287: Properly initialize mOGLLibrary on GLContectProviderCGL. r=bas
gfx/thebes/src/GLContextProviderCGL.mm
--- a/gfx/thebes/src/GLContextProviderCGL.mm
+++ b/gfx/thebes/src/GLContextProviderCGL.mm
@@ -44,17 +44,17 @@
 namespace mozilla {
 namespace gl {
 
 GLContextProvider sGLContextProvider;
 
 class CGLLibrary
 {
 public:
-    CGLLibrary() : mInitialized(PR_FALSE) {}
+    CGLLibrary() : mInitialized(PR_FALSE), mOGLLibrary(nsnull) {}
 
     PRBool EnsureInitialized()
     {
         if (mInitialized) {
             return PR_TRUE;
         }
         if (!mOGLLibrary) {
             mOGLLibrary = PR_LoadLibrary("/System/Library/Frameworks/OpenGL.framework/OpenGL");