|
@@ -24,8 +24,13 @@
|
|
#define T_GL_H
|
|
#define T_GL_H
|
|
#include "GL/glew.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)
|
|
#define gglHasExtension(EXTENSION) glewGetExtension("GL_" # EXTENSION)
|
|
|
|
+#endif
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|