mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
egl: bind the OpenGL API
This commit is contained in:
parent
ba7aeb8b34
commit
6b9b49127e
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue