From e18656732995f235516f49a88bd0d6e0e7d3fc7e Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 11 Jul 2017 13:54:20 +0200 Subject: 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. --- video/out/opengl/video.c | 1 - 1 file changed, 1 deletion(-) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 4be9f3e1cb..8f65b555c8 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -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); -- cgit v1.2.3