diff options
author | Niklas Haas <git@haasn.xyz> | 2017-08-26 05:58:50 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-08-27 14:36:04 +0200 |
commit | 1d47473a7bb49663c197efa9a6ff8d836a9c1693 (patch) | |
tree | 0479d2a67982a0dcb1584d6d29be5662a2fa6c3a /video/out/opengl/common.c | |
parent | 136cf2b770f08a435710f71fe2fa597c908cc8a0 (diff) | |
download | mpv-1d47473a7bb49663c197efa9a6ff8d836a9c1693.tar.bz2 mpv-1d47473a7bb49663c197efa9a6ff8d836a9c1693.tar.xz |
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.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r-- | video/out/opengl/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |