1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 20:27:23 +00:00

vo_gpu: ra_gl: fix minimum GLSL version to 120

Not sure why there was 110, or why there is even a default.
This commit is contained in:
wm4 2017-11-03 11:53:00 +01:00
parent 2abf20b2b2
commit 99dd2f57f0

View File

@ -625,7 +625,7 @@ void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n),
if (gl->es >= 300)
gl->glsl_version = 300;
} else {
gl->glsl_version = 110;
gl->glsl_version = 120;
int glsl_major = 0, glsl_minor = 0;
if (shader && sscanf(shader, "%d.%d", &glsl_major, &glsl_minor) == 2)
gl->glsl_version = glsl_major * 100 + glsl_minor;