Use the canonical glext.h on MacOS X as well (#define NO_SDL_GLEXT if you don't want this)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40933
This commit is contained in:
parent
26528307dc
commit
ce19d347ff
1 changed files with 4 additions and 4 deletions
|
@ -34,19 +34,19 @@ static char rcsid =
|
||||||
#endif
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef NO_SDL_GLEXT
|
||||||
|
#define __glext_h_ /* Don't let gl.h include glext.h */
|
||||||
|
#endif
|
||||||
#if defined(__APPLE__) && defined(__MACH__)
|
#if defined(__APPLE__) && defined(__MACH__)
|
||||||
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */
|
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */
|
||||||
#include <OpenGL/glu.h> /* Header File For The GLU Library */
|
#include <OpenGL/glu.h> /* Header File For The GLU Library */
|
||||||
#else
|
#else
|
||||||
#ifndef NO_SDL_GLEXT
|
|
||||||
#define __glext_h_ /* Don't let gl.h include glext.h */
|
|
||||||
#endif
|
|
||||||
#include <GL/gl.h> /* Header File For The OpenGL Library */
|
#include <GL/gl.h> /* Header File For The OpenGL Library */
|
||||||
#include <GL/glu.h> /* Header File For The GLU Library */
|
#include <GL/glu.h> /* Header File For The GLU Library */
|
||||||
|
#endif
|
||||||
#ifndef NO_SDL_GLEXT
|
#ifndef NO_SDL_GLEXT
|
||||||
#undef __glext_h_
|
#undef __glext_h_
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials.
|
/* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials.
|
||||||
It is included here because glext.h is not available on some systems.
|
It is included here because glext.h is not available on some systems.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue