Commit e5d59fa77ce4cd4919e4745fd0abf408409f794e

Sam Lantinga 2021-09-22T09:31:26

Fixed building testgles2 on Linux

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/test/testgles2.c b/test/testgles2.c
index 4a22375..65deaa5 100644
--- a/test/testgles2.c
+++ b/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