summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl_old.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-02 15:10:59 +0100
committerwm4 <wm4@nowhere>2013-03-03 14:19:57 +0100
commit152a2024cf271377005897974a2b0dc58a4dffa5 (patch)
tree5d04ccdef80eb4e4e19a168a1bfe6afb016d8a09 /video/out/vo_opengl_old.c
parent0c07e82136133aef14a5caf6f11da0c1a6dc72fb (diff)
downloadmpv-152a2024cf271377005897974a2b0dc58a4dffa5.tar.bz2
mpv-152a2024cf271377005897974a2b0dc58a4dffa5.tar.xz
video/out: remove VO_EVENT_REINIT
It was once used for vo_sdl (the old one based on SDL 1.2), since SDL apparently lost the GL state when switching to fullscreen. The new vo_sdl (using SDL 1.3) doesn't use or need this. It's dead code, so get rid of it.
Diffstat (limited to 'video/out/vo_opengl_old.c')
-rw-r--r--video/out/vo_opengl_old.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/vo_opengl_old.c b/video/out/vo_opengl_old.c
index 0f286dc72a..96472d02f2 100644
--- a/video/out/vo_opengl_old.c
+++ b/video/out/vo_opengl_old.c
@@ -1771,10 +1771,6 @@ static void check_events(struct vo *vo)
struct gl_priv *p = vo->priv;
int e = p->glctx->check_events(vo);
- if (e & VO_EVENT_REINIT) {
- uninitGl(vo);
- initGl(vo, vo->dwidth, vo->dheight);
- }
if (e & VO_EVENT_RESIZE)
resize(vo, vo->dwidth, vo->dheight);
if (e & VO_EVENT_EXPOSE)