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