浏览代码

Add @Azaezel's exception for Win32

"This chunk causes issues on the win8.1/non-SDL side."
Hein-Pieter van Braam 10 年之前
父节点
当前提交
eadd77272d
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      Engine/source/gfx/gl/tGL/tGL.h

+ 6 - 1
Engine/source/gfx/gl/tGL/tGL.h

@@ -24,8 +24,13 @@
 #define T_GL_H
 #include "GL/glew.h"
 
-// Slower but reliably detects extensions
+#if defined (TORQUE_OS_WIN)
+// This doesn't work on Mesa drivers.
+#define gglHasExtension(EXTENSION) GLEW_##EXTENSION
+#else
+// Slower but reliably detects extensions on Mesa.
 #define gglHasExtension(EXTENSION) glewGetExtension("GL_" # EXTENSION)
+#endif
 
 #endif