1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

context_glx: fix check for wrong GLX extension

GLX_CONTEXT_PROFILE_MASK_ARB and related constants are provided by
GLX_ARB_create_context_profile but the check was for _create_context.
The former implies the latter (which we also need) so just replace
the checked extension.
This commit is contained in:
sfan5 2021-11-16 20:09:05 +01:00
parent 9afa41945f
commit 69f21d5e74

View File

@ -88,9 +88,9 @@ static bool create_context_x11(struct ra_ctx *ctx, GL *gl, bool es)
return false;
}
if (!strstr(glxstr, "GLX_ARB_create_context") ||
if (!gl_check_extension(glxstr, "GLX_ARB_create_context_profile") ||
!glXCreateContextAttribsARB) {
MP_ERR(ctx, "GLX does not support GLX_ARB_create_context\n");
MP_ERR(ctx, "GLX does not support GLX_ARB_create_context_profile\n");
return false;
}