summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/x11egl.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/x11egl.c')
-rw-r--r--video/out/opengl/x11egl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/opengl/x11egl.c b/video/out/opengl/x11egl.c
index fba40603fc..53cd5ae677 100644
--- a/video/out/opengl/x11egl.c
+++ b/video/out/opengl/x11egl.c
@@ -134,8 +134,10 @@ static bool config_window_x11_egl(struct MPGLContext *ctx, int flags)
return false;
}
+ const char *egl_exts = eglQueryString(p->egl_display, EGL_EXTENSIONS);
+
void *(*gpa)(const GLubyte*) = (void *(*)(const GLubyte*))eglGetProcAddress;
- mpgl_load_functions(ctx->gl, gpa, NULL, vo->log);
+ mpgl_load_functions(ctx->gl, gpa, egl_exts, vo->log);
return true;
}