From: Brian Paul Date: Fri, 30 May 2008 19:46:50 +0000 (-0600) Subject: egl: bind the OpenGL API X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b9b49127e575ecfae08a78b991e89cb484150a4;p=mesa.git egl: bind the OpenGL API --- diff --git a/progs/egl/xeglgears.c b/progs/egl/xeglgears.c index 503958cf8c2..519d4bb692f 100644 --- a/progs/egl/xeglgears.c +++ b/progs/egl/xeglgears.c @@ -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");