Browse Source

Added code to force reloading of panda_glext.h

Josh Yelon 20 years ago
parent
commit
85edfbbaed
1 changed files with 11 additions and 0 deletions
  1. 11 0
      panda/src/glstuff/glstuff_src.h

+ 11 - 0
panda/src/glstuff/glstuff_src.h

@@ -37,6 +37,17 @@
 // This file is not protected from multiple inclusion; it may need to
 // be included multiple times.
 
+// This forces the stuff in panda_glext.h to be reloaded,
+// if it was already loaded.
+
+#if defined(GL_GLEXT_VERSION) && GL_GLEXT_VERSION < 29
+  #undef GL_GLEXT_VERSION
+  #undef GL_GLEXT_PROTOTYPES
+  #undef GL_VERSION_1_2
+  #undef GL_VERSION_1_3
+  #undef GL_VERSION_1_4
+  #undef GL_VERSION_1_5
+#endif
 #include "panda_glext.h"
 
 #include "glmisc_src.h"