diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-30 13:46:50 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-30 13:46:50 -0600 |
commit | 6b9b49127e575ecfae08a78b991e89cb484150a4 (patch) | |
tree | 15dad946b46794ee6187f45474eb80fa6ac2b946 | |
parent | ba7aeb8b34c2e310b6ba0d3dbfdc68b0d6ab82c8 (diff) | |
download | external_mesa3d-6b9b49127e575ecfae08a78b991e89cb484150a4.zip external_mesa3d-6b9b49127e575ecfae08a78b991e89cb484150a4.tar.gz external_mesa3d-6b9b49127e575ecfae08a78b991e89cb484150a4.tar.bz2 |
egl: bind the OpenGL API
-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 503958c..519d4bb 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"); |