1
0
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:
Niklas Haas 2017-07-11 13:54:20 +02:00
parent ca512b53a0
commit e186567329
No known key found for this signature in database
GPG Key ID: 9A09076581B27402

View File

@ -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);