cmake/Tests/FindOpenGL/Test/main_gles2.c
2023-07-02 19:51:09 +02:00

18 lines
349 B
C

#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;
}