From 1d47473a7bb49663c197efa9a6ff8d836a9c1693 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 26 Aug 2017 05:58:50 +0200 Subject: vo_opengl: use UBOs where supported/required This also introduces RA_CAP_GLOBAL_UNIFORM. If this is not set, UBOs *must* be used for non-bindings. Currently the cap is ignored though, and the shader_cache *always* generates UBO-using code where it can. Could be made an option in principle. Only enabled for drivers new enough to support explicit UBO offsets, just in case... No change to performance, which is probably what we expect. --- video/out/opengl/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/opengl/common.c') diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index 0b83555ad2..3d03c478b9 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -628,7 +628,7 @@ void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n), if (shader && sscanf(shader, "%d.%d", &glsl_major, &glsl_minor) == 2) gl->glsl_version = glsl_major * 100 + glsl_minor; // restrict GLSL version to be forwards compatible - gl->glsl_version = MPMIN(gl->glsl_version, 430); + gl->glsl_version = MPMIN(gl->glsl_version, 440); } if (is_software_gl(gl)) { -- cgit v1.2.3