mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
vo_opengl: remove redundant gl_video_setup_hooks call
This is unnecessary to call from gl_video_resize, because the hooks only (possibly) change when the actual vo_opengl options change. This used to be required back when mpv still had prescaling built in, but since that was all moved to user shaders and the code removed, this is a left-over artifact.
This commit is contained in:
parent
ca512b53a0
commit
e186567329
@ -2970,7 +2970,6 @@ void gl_video_resize(struct gl_video *p, int vp_w, int vp_h,
|
||||
p->vp_h = vp_h;
|
||||
|
||||
gl_video_reset_surfaces(p);
|
||||
gl_video_setup_hooks(p);
|
||||
|
||||
if (p->osd)
|
||||
mpgl_osd_resize(p->osd, p->osd_rect, p->image_params.stereo_out);
|
||||
|
Loading…
Reference in New Issue
Block a user