summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-11-16 20:09:05 +0100
committersfan5 <sfan5@live.de>2021-11-17 22:38:34 +0100
commit69f21d5e74ad791b40767e0a5e809c6dcbf2971a (patch)
tree19d08f819e54e863d030ab7831c55045a287361d
parent9afa41945fa1110b5a6e368b0ef60472758f3000 (diff)
downloadmpv-69f21d5e74ad791b40767e0a5e809c6dcbf2971a.tar.bz2
mpv-69f21d5e74ad791b40767e0a5e809c6dcbf2971a.tar.xz
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.
-rw-r--r--video/out/opengl/context_glx.c4
1 files 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;
}