]> git.cworth.org Git - apitrace/blob - thirdparty/khronos/GL/glext.patch
Use patch instead of sed for glext.h tweaks.
[apitrace] / thirdparty / khronos / GL / glext.patch
1 # MacOSX doesn't follow the official glext.h definition for GLhandleARB, and
2 # instead defines it as:
3 #
4 #   typedef void *GLhandleARB;
5 #
6 # But to avoid integer to pointer conversion issues, we simply use 'unsigned
7 # long' which should be the same size on all supported architectures.
8 --- glext.h.orig        2012-03-05 11:00:02.000000000 +0000
9 +++ glext.h     2012-03-14 08:56:54.199519853 +0000
10 @@ -5484,8 +5484,12 @@
11  #ifndef GL_ARB_shader_objects
12  /* GL types for program/shader text and shader object handles */
13  typedef char GLcharARB;
14 +#ifdef __APPLE__
15 +typedef unsigned long GLhandleARB;
16 +#else
17  typedef unsigned int GLhandleARB;
18  #endif
19 +#endif
20  
21  /* GL type for "half" precision (s10e5) float data in host memory */
22  #ifndef GL_ARB_half_float_pixel