summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-07-11 13:54:20 +0200
committerNiklas Haas <git@haasn.xyz>2017-07-12 18:46:09 +0200
commite18656732995f235516f49a88bd0d6e0e7d3fc7e (patch)
tree39d8128662623bb8727916de7a10cd4eed64d3cb /video
parentca512b53a0569a3b49e25c52ab191d48b73d649e (diff)
downloadmpv-e18656732995f235516f49a88bd0d6e0e7d3fc7e.tar.bz2
mpv-e18656732995f235516f49a88bd0d6e0e7d3fc7e.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/opengl/video.c1
1 files changed, 0 insertions, 1 deletions
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);