diff --git a/panda/src/glstuff/panda_glext.h b/panda/src/glstuff/panda_glext.h index 7bb8e6e7cc..db0a27c0fb 100644 --- a/panda/src/glstuff/panda_glext.h +++ b/panda/src/glstuff/panda_glext.h @@ -1,5 +1,9 @@ -#ifndef __glext_h_ -#define __glext_h_ +/* Additions by drose to re-include this glext.h even if an older + version has previously been included. */ +#if defined(GL_GLEXT_VERSION) && GL_GLEXT_VERSION < 21 + #undef GL_GLEXT_VERSION +#endif +#ifndef GL_GLEXT_VERSION #ifdef __cplusplus extern "C" {