Parcourir la source

Fixed building testgles2 on Linux

Sam Lantinga il y a 4 ans
Parent
commit
e5d59fa77c
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      test/testgles2.c

+ 2 - 0
test/testgles2.c

@@ -22,8 +22,10 @@
 
 #if defined(__IPHONEOS__) || defined(__ANDROID__) || defined(__EMSCRIPTEN__) || defined(__NACL__) \
     || defined(__WINDOWS__) || defined(__LINUX__)
+#ifndef HAVE_OPENGLES2
 #define HAVE_OPENGLES2
 #endif
+#endif
 
 #ifdef HAVE_OPENGLES2