mirror of https://github.com/mpv-player/mpv
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:
parent
2abf20b2b2
commit
99dd2f57f0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue