diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index da0a5143e7..54389e15cf 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -469,6 +469,8 @@ void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n), int glsl_major = 0, glsl_minor = 0; if (sscanf(shader, "%d.%d", &glsl_major, &glsl_minor) == 2) gl->glsl_version = glsl_major * 100 + glsl_minor; + // GLSL 400 defines "sample" as keyword - breaks custom shaders. + gl->glsl_version = MPMIN(gl->glsl_version, 330); } if (is_software_gl(gl)) { |