From d0d0604f3286cb816f365b07c18917652776702c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 11 Mar 2013 22:37:29 +0000 Subject: [PATCH] dispatch: Compensate for broken GL headers in Visual Studio 2012 --- dispatch/glimports.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dispatch/glimports.hpp b/dispatch/glimports.hpp index 773d50f..e6d1d32 100644 --- a/dispatch/glimports.hpp +++ b/dispatch/glimports.hpp @@ -46,6 +46,14 @@ #include +// 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 -- 2.43.0