egl: bind the OpenGL API
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 19:46:50 +0000 (13:46 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 19:46:50 +0000 (13:46 -0600)
progs/egl/xeglgears.c

index 503958cf8c261929add9234b73d1760e440a019e..519d4bb692fbbe636c42acf38c25c478bb54ec30 100644 (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");