summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-gfx_gl_GLContextFeatures.cpp
blob: 9de762955b03f1ed31e2fa74147a7a971bb705b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-gfx_gl_GLContextFeatures.cpp,v 1.1 2014/05/28 15:11:29 pho Exp $

Don't assume cocoa toolkit just because OS_ARCH is Darwin.

--- gfx/gl/GLContextFeatures.cpp.orig	2014-05-06 22:55:33.000000000 +0000
+++ gfx/gl/GLContextFeatures.cpp
@@ -7,7 +7,7 @@
 #include "GLContext.h"
 #include "nsPrintfCString.h"
 
-#ifdef XP_MACOSX
+#ifdef MOZ_WIDGET_COCOA
 #include "nsCocoaFeatures.h"
 #endif
 
@@ -394,7 +394,7 @@ CanReadSRGBFromFBOTexture(GLContext* gl)
     if (!gl->WorkAroundDriverBugs())
         return true;
 
-#ifdef XP_MACOSX
+#ifdef MOZ_WIDGET_COCOA
     // Bug 843668:
     // MacOSX 10.6 reports to support EXT_framebuffer_sRGB and
     // EXT_texture_sRGB but fails to convert from sRGB to linear