From b492720c7c1a10ce8063df16b2c61f058295ec0d Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 22 Jul 2015 23:57:09 +0200 Subject: 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. --- video/out/gl_video.c | 4 ++-- 1 file 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); -- cgit v1.2.3