vo_opengl: make the size of interpolation textures exact

I still have no idea why this is needed, maybe some weird off-by-one
in some shitty driver? Either way, the difference for a working setup
shouldn't be too major, the most noticeable effect would be somewhat worse
performance when resizing the video during playback with interpolation
enabled using the mouse.

That's a specific enough side effect for me to not care as much about it.

Fixes #1814.
This commit is contained in:
Niklas Haas 2015-07-18 18:06:35 +02:00 committed by wm4
parent 050c529e9a
commit fb8d158366
1 changed files with 2 additions and 2 deletions

View File

@ -2078,7 +2078,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, FBOTEX_FUZZY);
vp_w, vp_h, 0, 0);
p->surfaces[p->surface_now].pts = p->image.mpi->pts;
p->surface_idx = p->surface_now;
}
@ -2139,7 +2139,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, FBOTEX_FUZZY);
vp_w, vp_h, 0, 0);
p->surfaces[surface_dst].pts = f->pts;
p->surface_idx = surface_dst;
surface_dst = fbosurface_wrap(surface_dst+1);