Changeset 796 for trunk/src/lolgl.h


Ignore:
Timestamp:
Aug 2, 2011, 2:27:12 AM (10 years ago)
Author:
sam
Message:

gl: use Glew if available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lolgl.h

    r758 r796  
    2525
    2626/* Include GL */
    27 #if defined HAVE_GL_2X
     27#if defined USE_GLEW
     28#   include <GL/glew.h>
     29#elif defined HAVE_GL_2X
    2830#   if defined __APPLE__ && defined __MACH__
    2931#       include <OpenGL/gl.h>
     
    4749/* Redefine some function names */
    4850#if defined HAVE_GL_2X
    49 #   define glClearDepthf glClearDepth
    5051#elif defined HAVE_GLES_2X
     52#   define glClearDepth glClearDepthf
    5153#   define glGenVertexArrays glGenVertexArraysOES
    5254#   define glDeleteVertexArrays glDeleteVertexArraysOES
Note: See TracChangeset for help on using the changeset viewer.