summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-22 21:05:32 +0200
committerwm4 <wm4@nowhere>2015-08-22 21:05:32 +0200
commit1e4113040c533278f61f66e56e817aba5958f380 (patch)
treedfddc36b21a0e82ebd2b768166524c95af29a7bd
parent0e2024ef2b4a9926156e138f58ec7d6f4db88a74 (diff)
downloadmpv-1e4113040c533278f61f66e56e817aba5958f380.tar.bz2
mpv-1e4113040c533278f61f66e56e817aba5958f380.tar.xz
vo_opengl: remove dead code
Leftover from 3245bfef.
-rw-r--r--video/out/vo_opengl.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index 6fb4206fc4..6c42531629 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -77,8 +77,6 @@ struct gl_priv {
char *backend;
int es;
- bool frame_started;
-
int frames_rendered;
unsigned int prev_sgi_sync_count;
@@ -124,12 +122,6 @@ static void flip_page(struct vo *vo)
struct gl_priv *p = vo->priv;
GL *gl = p->gl;
- if (!p->frame_started) {
- vo_increment_drop_count(vo, 1);
- return;
- }
- p->frame_started = false;
-
mpgl_swap_buffers(p->glctx);
p->frames_rendered++;
@@ -169,7 +161,6 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
struct gl_priv *p = vo->priv;
GL *gl = p->gl;
- p->frame_started = true;
gl_video_render_frame(p->renderer, frame, 0);
// The playloop calls this last before waiting some time until it decides