Add @Azaezel's exception for Win32

"This chunk causes issues on the win8.1/non-SDL side."
This commit is contained in:
Hein-Pieter van Braam 2015-07-30 22:16:13 +02:00
parent 320718327f
commit eadd77272d

View file

@ -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