[PATCH] Move kCGLPFABackingVolatile to < 10.8
José Fonseca
jose.r.fonseca at gmail.com
Mon Nov 4 12:35:08 CET 2013
On Thu, Oct 31, 2013 at 6:26 PM, Jeff Muizelaar <jmuizelaar at mozilla.com>wrote:
> kCGLPFABackingVolatile was added in 10.8 not 10.7
>
Weird. I suppose the headers are wrong then:
$ grep kCGLPFABackingVolatile
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library//Frameworks/OpenGL.framework//Headers/CGLTypes.h
kCGLPFABackingVolatile OPENGL_ENUM_AVAILABLE(10_7) =
77, /* back buffer contents are volatile after swap */
Anyway, the #define is harmless even when kCGLPFABackingVolatile enum is
declared. So I pushed it. Thanks
Jose
> ---
>
> diff --git a/dispatch/glimports.hpp b/dispatch/glimports.hpp
> index 938c374..a913468 100644
> --- a/dispatch/glimports.hpp
> +++ b/dispatch/glimports.hpp
> @@ -112,27 +112,27 @@ typedef struct _WGLSWAP
> #define kCGLPFAAcceleratedCompute 97
> #define kCGLRPAcceleratedCompute 130
> typedef void *CGLShareGroupObj;
> typedef struct __IOSurface *IOSurfaceRef;
> #endif
>
> #if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
> #define kCGLPFATripleBuffer 3
> -#define kCGLPFABackingVolatile 77
> #define kCGLPFAOpenGLProfile 99
> #define kCGLRPVideoMemoryMegabytes 131
> #define kCGLRPTextureMemoryMegabytes 132
> #define kCGLCECrashOnRemovedFunctions 316
> #define kCGLOGLPVersion_Legacy 0x1000
> #define kCGLOGLPVersion_3_2_Core 0x3200
> #define kCGLOGLPVersion_GL3_Core 0x3200
> #endif
>
> #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
> +#define kCGLPFABackingVolatile 77
> #define kCGLPFASupportsAutomaticGraphicsSwitching 101
> #endif
>
> #if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
> #define kCGLOGLPVersion_GL3_Core 0x3200
> #define kCGLOGLPVersion_GL4_Core 0x4100
> #define kCGLRPMajorGLVersion 133
> #endif
>
> _______________________________________________
> apitrace mailing list
> apitrace at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/apitrace
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/apitrace/attachments/20131104/bdf0a83f/attachment.html>
More information about the apitrace
mailing list