mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
Revert "vo_opengl: make the size of interpolation textures exact"
This reverts commit fb8d158366.
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user