summaryrefslogtreecommitdiff
path: root/Tests/FindOpenGL/Test/main_gles2.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FindOpenGL/Test/main_gles2.c')
-rw-r--r--Tests/FindOpenGL/Test/main_gles2.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/FindOpenGL/Test/main_gles2.c b/Tests/FindOpenGL/Test/main_gles2.c
new file mode 100644
index 0000000000..52f5936089
--- /dev/null
+++ b/Tests/FindOpenGL/Test/main_gles2.c
@@ -0,0 +1,17 @@
+#ifdef _WIN32
+# error "GLES2 cannot be tested on WIN32 platforms."
+#endif
+#ifdef __APPLE__
+# error "GLES2 cannot be tested on macOS platform."
+#else
+# include <GLES2/gl2.h>
+#endif
+
+#include <stdio.h>
+
+int main()
+{
+ /* Reference a GL symbol without requiring a context at runtime. */
+ printf("&glGetString = %p\n", &glGetString);
+ return 0;
+}