summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/vo.h1
-rw-r--r--video/out/vo_opengl.c6
-rw-r--r--video/out/vo_opengl_old.c4
3 files changed, 0 insertions, 11 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index ea0189dcee..ae5c105597 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -32,7 +32,6 @@
#define VO_EVENT_EXPOSE 1
#define VO_EVENT_RESIZE 2
#define VO_EVENT_KEYPRESS 4
-#define VO_EVENT_REINIT 8
#define VO_EVENT_MOVE 16
enum mp_voctrl {
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index aa3c3cea0a..baaad18381 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -1672,12 +1672,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) {
- uninit_gl(p);
- init_gl(p);
- init_video(p);
- resize(p);
- }
if (e & VO_EVENT_RESIZE)
resize(p);
if (e & VO_EVENT_EXPOSE)
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)