Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dispatch: Compensate for broken GL headers in Visual Studio 2012

  • Loading branch information...
commit d0d0604f3286cb816f365b07c18917652776702c 1 parent 6532185
@jrfonseca jrfonseca authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 dispatch/glimports.hpp
View
8 dispatch/glimports.hpp
@@ -46,6 +46,14 @@
#include <GL/glext.h>
+// Windows 8 GL headers define GL_EXT_paletted_texture but not
+// GL_TEXTURE_INDEX_SIZE_EXT, and due to the way we include DirectX headers, it
+// ends up taking precedence over the ones we bundle...
+#if defined(GL_EXT_paletted_texture) && !defined(GL_TEXTURE_INDEX_SIZE_EXT)
+#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
+#endif
+
+
// GL_NVX_gpu_memory_info
#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047
#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048
Please sign in to comment.
Something went wrong with that request. Please try again.