diff --git a/src/OpenGL.h b/src/OpenGL.h index 69c70bcec..70b7d3a5c 100644 --- a/src/OpenGL.h +++ b/src/OpenGL.h @@ -33,32 +33,31 @@ /* Desktop OpenGL */ #ifndef MAGNUM_TARGET_GLES -#include + #include /* NaCl has its own gl2.h, the official one causes linker issues. Additionaly to NaCl's gl2ext.h we are including our own to prevent undeclared symbol errors with some recent extensions. */ #elif defined(CORRADE_TARGET_NACL) + /* Enable function prototypes (the supported ones shouldn't fail at link time) */ + #define GL_GLEXT_PROTOTYPES -/* Enable function prototypes (the supported ones shouldn't fail at link time) */ -#define GL_GLEXT_PROTOTYPES - -#include -#include -#undef __gl2ext_h_ -#include + #include + #include + #undef __gl2ext_h_ + #include /* Generic OpenGL ES */ #else -#include -#ifndef MAGNUM_TARGET_GLES2 -#include -#include -#else -#include -#include -#include -#endif + #include + #ifndef MAGNUM_TARGET_GLES2 + #include + #include + #else + #include + #include + #include + #endif #endif #endif