0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

gl_x11: distinguish missing GLX and too old GLX versions

This probably led to confusing output.

CC: @mpv-player/stable
This commit is contained in:
wm4 2014-10-12 01:32:26 +02:00
parent 3093d93e1f
commit 9c0389e841

View File

@ -193,9 +193,11 @@ static bool config_window_x11(struct MPGLContext *ctx, int flags)
int glx_major, glx_minor;
// FBConfigs were added in GLX version 1.3.
if (!glXQueryVersion(vo->x11->display, &glx_major, &glx_minor) ||
(MPGL_VER(glx_major, glx_minor) < MPGL_VER(1, 3)))
{
if (!glXQueryVersion(vo->x11->display, &glx_major, &glx_minor)) {
MP_ERR(vo, "GLX not found.\n");
return false;
}
if (MPGL_VER(glx_major, glx_minor) < MPGL_VER(1, 3)) {
MP_ERR(vo, "GLX version older than 1.3.\n");
return false;
}