summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-22 23:57:09 +0200
committerwm4 <wm4@nowhere>2015-07-22 23:57:09 +0200
commitb492720c7c1a10ce8063df16b2c61f058295ec0d (patch)
tree72d43d54fc02e16aff0f5c7b425d333ad0b66767
parent55879a8c0fad68fbe889057c16fc8f15bf3efce2 (diff)
downloadmpv-b492720c7c1a10ce8063df16b2c61f058295ec0d.tar.bz2
mpv-b492720c7c1a10ce8063df16b2c61f058295ec0d.tar.xz
Revert "vo_opengl: make the size of interpolation textures exact"
This reverts commit fb8d15836695e883355c5ec6ff8463e7bbf39461. Reallocating the FBOs on every resize is very slow. It affects resizing the window, as well as changing the video size itself with e.g. panscan. Since the original change was done based on a single user complaint, but the change itself caused a lot of complaints, we decided to just revert it.
-rw-r--r--video/out/gl_video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 00c5038362..92d74ee8e6 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -2081,7 +2081,7 @@ static void gl_video_interpolate_frame(struct gl_video *p, struct vo_frame *t,
gl_video_upload_image(p, t->current);
pass_render_frame(p);
finish_pass_fbo(p, &p->surfaces[p->surface_now].fbotex,
- vp_w, vp_h, 0, 0);
+ vp_w, vp_h, 0, FBOTEX_FUZZY);
p->surfaces[p->surface_now].pts = p->image.mpi->pts;
p->surface_idx = p->surface_now;
}
@@ -2142,7 +2142,7 @@ static void gl_video_interpolate_frame(struct gl_video *p, struct vo_frame *t,
gl_video_upload_image(p, f);
pass_render_frame(p);
finish_pass_fbo(p, &p->surfaces[surface_dst].fbotex,
- vp_w, vp_h, 0, 0);
+ vp_w, vp_h, 0, FBOTEX_FUZZY);
p->surfaces[surface_dst].pts = f->pts;
p->surface_idx = surface_dst;
surface_dst = fbosurface_wrap(surface_dst+1);