summaryrefslogtreecommitdiffstats
path: root/Tests/FindOpenGL/Test/main_gles2.c
blob: 355795bdb843c650338a651c62c97d22c1517099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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(void)
{
  /* Reference a GL symbol without requiring a context at runtime.  */
  printf("&glGetString = %p\n", &glGetString);
  return 0;
}