diff options
author | Niklas Haas <git@haasn.xyz> | 2017-08-06 02:51:11 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-08-06 02:51:11 +0200 |
commit | 494aa0f6516f1967229fb6973212eb56a3f3d2df (patch) | |
tree | 853d03e8630d5e6febf84aa300683056592d8e55 /video | |
parent | 988d188d96d48ce7c78c09276982edb3c481b123 (diff) | |
download | mpv-494aa0f6516f1967229fb6973212eb56a3f3d2df.tar.bz2 mpv-494aa0f6516f1967229fb6973212eb56a3f3d2df.tar.xz |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |