From 85edfbbaed84e1abee3a602cbeafd6c4ba79ee6b Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Wed, 16 Nov 2005 20:28:13 +0000 Subject: [PATCH] Added code to force reloading of panda_glext.h --- panda/src/glstuff/glstuff_src.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/panda/src/glstuff/glstuff_src.h b/panda/src/glstuff/glstuff_src.h index 037f1a765b..4fe0b51587 100644 --- a/panda/src/glstuff/glstuff_src.h +++ b/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"