egl: bind the OpenGL API

This commit is contained in:
Brian Paul 2008-05-30 13:46:50 -06:00
parent ba7aeb8b34
commit 6b9b49127e

View file

@ -409,6 +409,8 @@ make_x_window(Display *x_dpy, EGLDisplay egl_dpy,
None, (char **)NULL, 0, &sizehints);
}
eglBindAPI(EGL_OPENGL_API);
ctx = eglCreateContext(egl_dpy, config, EGL_NO_CONTEXT, NULL );
if (!ctx) {
printf("Error: glXCreateContext failed\n");