From 69f21d5e74ad791b40767e0a5e809c6dcbf2971a Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 16 Nov 2021 20:09:05 +0100 Subject: 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. --- video/out/opengl/context_glx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/opengl/context_glx.c b/video/out/opengl/context_glx.c index 09d6d7cf7a..677260c197 100644 --- a/video/out/opengl/context_glx.c +++ b/video/out/opengl/context_glx.c @@ -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; } -- cgit v1.2.3