Bug 815602 - Fix invalid drawable error in console after starting Firefox. r=mattwoodrow
authorBenoit Girard <b56girard@gmail.com>
Mon, 28 Jan 2013 16:57:33 -0500
changeset 120400 0415a9f8699ab93b156e9d110ec167708bc6b006
parent 120399 a3582dcf09dfe0adb140c72c01cbe9883413dafe
child 120401 ba7ffb02dc3f4001dee234af43d80b7a042292f8
push id22202
push userb56girard@gmail.com
push dateWed, 30 Jan 2013 22:16:54 +0000
treeherdermozilla-inbound@0415a9f8699a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs815602
milestone21.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 815602 - Fix invalid drawable error in console after starting Firefox. r=mattwoodrow
gfx/gl/GLContextProviderCGL.mm
--- a/gfx/gl/GLContextProviderCGL.mm
+++ b/gfx/gl/GLContextProviderCGL.mm
@@ -425,19 +425,16 @@ GLContextProviderCGL::CreateForWindow(ns
 
     NSOpenGLContext *context = [[NSOpenGLContext alloc] 
                                 initWithFormat:sCGLLibrary.PixelFormat()
                                 shareContext:(shareContext ? shareContext->mContext : NULL)];
     if (!context) {
         return nullptr;
     }
 
-    NSView *childView = (NSView *)aWidget->GetNativeData(NS_NATIVE_WIDGET);
-    [context setView:childView];
-
     // make the context transparent
     nsRefPtr<GLContextCGL> glContext = new GLContextCGL(ContextFormat(ContextFormat::BasicRGB24),
                                                         shareContext,
                                                         context);
     if (!glContext->Init()) {
         return nullptr;
     }