diff options
-rw-r--r-- | progs/egl/xeglgears.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |