diff options
author | Niklas Haas <git@nand.wakku.to> | 2016-05-17 06:36:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-17 10:09:01 +0200 |
commit | 8262a4dd5296f11338b2d54190982b1e07aa1267 (patch) | |
tree | 0a3db18a2c0b8f357fce7ffc44c5f374233b9c7d /video/out/opengl | |
parent | ca09cd68c88e1fdf412b32cfe4415aa17e6fc2b0 (diff) | |
download | mpv-8262a4dd5296f11338b2d54190982b1e07aa1267.tar.bz2 mpv-8262a4dd5296f11338b2d54190982b1e07aa1267.tar.xz |
vo_opengl: increase shader limits
The new uniforms introduced by 362015c have exceeded the uniform limit
when using high-radius tscale. In addition, the SC limit of 32 entries
might be pushing it with user shaders.
Just make these value a bigger to delay the onset of this same failure
mode. Maybe in the future it should be reworked to grow dynamically?
Either way, we *can* always predict a static upper bound on the number
of uniforms and shader cache entries, it's just that we forgot to do so.
Fixes #3151
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index 5ef99ac599..1f4b365d26 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -431,8 +431,8 @@ void gl_set_debug_logger(GL *gl, struct mp_log *log) gl->DebugMessageCallback(log ? gl_debug_cb : NULL, log); } -#define SC_ENTRIES 32 -#define SC_UNIFORM_ENTRIES 20 +#define SC_ENTRIES 48 +#define SC_UNIFORM_ENTRIES 64 enum uniform_type { UT_invalid, |