From 494aa0f6516f1967229fb6973212eb56a3f3d2df Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 6 Aug 2017 02:51:11 +0200 Subject: vo_opengl: only mark frames as fresh if they contain a new image When using dumb mode, we can actually redraw a frame without uploading it. Marking this as fresh as well results in unpredictable pass behavior, which is confusing and makes debugging harder. So mark it as a redraw instead, in that case. --- video/out/opengl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index b3922f50d1..8c90a11376 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -3074,7 +3074,7 @@ void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame, int fbo) if (is_new || !p->output_fbo_valid) { p->output_fbo_valid = false; - pass_info_reset(p, false); + pass_info_reset(p, !is_new); if (!pass_render_frame(p, frame->current, frame->frame_id)) goto done; -- cgit v1.2.3