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 130281 0415a9f8699ab93b156e9d110ec167708bc6b006
parent 130280 a3582dcf09dfe0adb140c72c01cbe9883413dafe
child 130282 ba7ffb02dc3f4001dee234af43d80b7a042292f8
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [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;
     }