summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Jin <bjin@ctrl-d.org>2016-06-10 12:53:31 +0000
committerwm4 <wm4@nowhere>2016-06-10 17:08:54 +0200
commit2b1656b1aced3d81b31c83e8c310a630ca5d5d1c (patch)
tree64d79a448a77f82bdfbf2353717aabebe28ba9fe
parent1c5fd2d9019d84901e2c0c5485c79e7d79fa5662 (diff)
downloadmpv-2b1656b1aced3d81b31c83e8c310a630ca5d5d1c.tar.bz2
mpv-2b1656b1aced3d81b31c83e8c310a630ca5d5d1c.tar.xz
vo_opengl: increase the size limit for cached file
This is mainly for the nnedi3 user shader. With all whose NN weights hardcoded into the shader source code, the shader file could be as large as 300 kB.
-rw-r--r--video/out/opengl/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index e23bfb4edf..21eda6bc7d 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -520,7 +520,7 @@ static struct bstr load_cached_file(struct gl_video *p, const char *path)
return p->files[n].body;
}
// not found -> load it
- struct bstr s = stream_read_file(path, p, p->global, 100000); // 100 kB
+ struct bstr s = stream_read_file(path, p, p->global, 1024000); // 1024 kB
if (s.len) {
struct cached_file new = {
.path = talloc_strdup(p, path),