summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-06-08 17:32:40 +0200
committerwm4 <wm4@nowhere>2016-07-03 19:42:52 +0200
commit3abf9c9204e2fcbc1910deb102efab4ab9d8c149 (patch)
tree6477bcf9d0c17dcf85316b3aeae395ab59e8ca07
parentea23a86f49c4aff2c2c144829ba5563def460b26 (diff)
downloadmpv-3abf9c9204e2fcbc1910deb102efab4ab9d8c149.tar.bz2
mpv-3abf9c9204e2fcbc1910deb102efab4ab9d8c149.tar.xz
vo_opengl: don't constantly resize the output FBO
Commit 883d3114 seems to have (accidentally?) dropped the FBOTEX_FUZZY from the output_fbo resize, which means that current master will keep resizing and resizing the FBO as you change the window size, introducing severe memory leaking after a while. (Not sure why that would cause memory leaks, but I blame nvidia) Either way, it's bad for performance too, so it's worth fixing.
-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 bd1eb893af..6c7646bef4 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -2791,7 +2791,7 @@ void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame, int fbo)
{
fbotex_change(&p->output_fbo, p->gl, p->log,
p->vp_w, abs(p->vp_h),
- p->opts.fbo_format, 0);
+ p->opts.fbo_format, FBOTEX_FUZZY);
dest_fbo = p->output_fbo.fbo;
p->output_fbo_valid = true;
}