eea121e0d7
From brad, with tweaks by ajacoutot@ and me. Tested by many on ports@ Ok ajacoutot@
27 lines
720 B
Plaintext
27 lines
720 B
Plaintext
$OpenBSD: patch-include_SDL_opengl_h,v 1.2 2012/03/02 09:10:38 dcoppa Exp $
|
|
--- include/SDL_opengl.h.orig Mon Oct 12 19:07:19 2009
|
|
+++ include/SDL_opengl.h Thu Sep 2 19:02:50 2010
|
|
@@ -35,7 +35,11 @@
|
|
#endif
|
|
#ifndef NO_SDL_GLEXT
|
|
#define __glext_h_ /* Don't let gl.h include glext.h */
|
|
+#ifndef GL_ARB_shader_objects
|
|
+#define GL_ARB_shader_objects 0
|
|
+#define undef_GL_ARB
|
|
#endif
|
|
+#endif
|
|
#if defined(__MACOSX__)
|
|
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */
|
|
#include <OpenGL/glu.h> /* Header File For The GLU Library */
|
|
@@ -48,6 +52,10 @@
|
|
#endif
|
|
#ifndef NO_SDL_GLEXT
|
|
#undef __glext_h_
|
|
+#ifdef undef_GL_ARB
|
|
+#undef GL_ARB_shader_objects
|
|
+#undef undef_GL_ARB
|
|
+#endif
|
|
#endif
|
|
|
|
/** @name GLext.h
|