Skip to content

Commit

Permalink
Apple uses a void* for GLhandleARB, not an unsigned int.
Browse files Browse the repository at this point in the history
(transplanted from 68eb59d8baedbcfa99294f833611581860c37258)
  • Loading branch information
icculus committed Aug 4, 2011
1 parent b3a813e commit 35f3b0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/SDL_opengl.h
Expand Up @@ -3121,8 +3121,12 @@ typedef ptrdiff_t GLsizeiptrARB;
#ifndef GL_ARB_shader_objects
/* GL types for handling shader object handles and program/shader text */
typedef char GLcharARB; /* native character */
#if defined(__APPLE__)
typedef void *GLhandleARB; /* shader object handle */
#else
typedef unsigned int GLhandleARB; /* shader object handle */
#endif
#endif

/* GL types for "half" precision (s10e5) float data in host memory */
#ifndef GL_ARB_half_float_pixel
Expand Down

0 comments on commit 35f3b0d

Please sign in to comment.