diff --git a/ogre/src/OgreRenderEngine.cc b/ogre/src/OgreRenderEngine.cc index 7352e747a..778467909 100644 --- a/ogre/src/OgreRenderEngine.cc +++ b/ogre/src/OgreRenderEngine.cc @@ -19,6 +19,14 @@ #if !defined(__APPLE__) && !defined(_WIN32) # include <X11/Xlib.h> # include <X11/Xutil.h> + +// conda-forge's glext.h is old and has a bug. +// This is a minimally-intrusive fix to correct types. +// On modern GL distributions, glx.h will override these. +# include <KHR/khrplatform.h> +typedef khronos_ssize_t GLsizeiptr; +typedef khronos_intptr_t GLintptr; + # include <GL/glx.h> #endif