Changeset 960 for trunk/src/lolgl.h


Ignore:
Timestamp:
Sep 19, 2011, 1:32:18 AM (8 years ago)
Author:
sam
Message:

osx: link with the proper OpenGL libraries on OS X.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lolgl.h

    r954 r960  
    2424#endif
    2525
    26 /* Include GL */
    27 #if defined USE_GLEW
     26/* Include GL development headers.
     27 * Do not include glew.h on OS X, because the version shipped with Fink
     28 * links with X11 whereas we want the system’s Cocoa-friendly GL libs. */
     29#if defined USE_GLEW && !defined __APPLE__
    2830#   include <glew.h>
    2931#elif defined HAVE_GL_2X
    30 #   if defined __APPLE__ && defined __MACH__
     32#   if defined __APPLE__ && defined __MACH__ && defined __arm__
    3133#       include <OpenGL/gl.h>
     34#   elif defined __APPLE__ && defined __MACH__
     35#       define MACOS_OPENGL
     36#       define GL_GLEXT_PROTOTYPES
     37#       include <OpenGL/OpenGL.h>
     38#       include <OpenGL/gl.h>
     39#       include <OpenGL/glext.h>
    3240#   else
    3341#       define GL_GLEXT_PROTOTYPES
Note: See TracChangeset for help on using the changeset viewer.