Przeglądaj źródła

support GL_BGR_EXT

David Rose 24 lat temu
rodzic
commit
895fc18c45
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      panda/src/glgsg/glGraphicsStateGuardian.cxx

+ 6 - 0
panda/src/glgsg/glGraphicsStateGuardian.cxx

@@ -84,6 +84,12 @@
 #define glDeleteTextures glDeleteTexturesEXT
 #define glDeleteTextures glDeleteTexturesEXT
 #endif
 #endif
 
 
+#if !defined(GL_BGR) && defined(GL_BGR_EXT)
+// These symbols are sometimes defined as _EXT variants.
+#define GL_BGR GL_BGR_EXT
+#define GL_BGRA GL_BGRA_EXT
+#endif
+
 TypeHandle GLGraphicsStateGuardian::_type_handle;
 TypeHandle GLGraphicsStateGuardian::_type_handle;
 
 
 #if !defined(CPPPARSER) && defined(DO_PSTATS)
 #if !defined(CPPPARSER) && defined(DO_PSTATS)