diff options
author | wm4 <wm4@nowhere> | 2015-10-30 12:48:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-30 12:49:12 +0100 |
commit | 67aab3a9f674b392159495094dcd40f7e69ee9b4 (patch) | |
tree | 9708112850f1f927145c9bb36ddc8df31d55c80e /video/out | |
parent | 8eb7cb28f9731985f7852c67b38bebea9d392db1 (diff) |
vo_opengl: do not attempt to cache frames in FBO in dumb-mode
There were occasional shader compilation and rendering failures if FBOs
were unavailable. This is caused by the FBO caching code getting active,
even though FBOs are unavailable (i.e. dumb-mode).
Boken by commit 97fc4f.
Fixes #2432.
Diffstat (limited to 'video/out')
-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 47aaba1c1c..60d987a31b 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -1926,7 +1926,7 @@ void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame, int fbo) gl_video_upload_image(p, frame->current); pass_render_frame(p); - if (frame->num_vsyncs == 1) { + if (frame->num_vsyncs == 1 || p->opts.dumb_mode) { // Disable output_fbo_valid to signal that this frame // does not require any redraws from the FBO. pass_draw_to_screen(p, fbo); |