From f32ea013dd41a1baa59c1cd696ed29ce21baca99 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 19 Nov 2021 23:59:57 +0100 Subject: video: opengl: teach start_frame() about out_fbo == NULL This case was added in 662c793a557925319493297de8c941a636f18d73 for use in vo_gpu_next as a visibility test before rendering a frame. The OpenGL context doesn't have this so it just returns true. --- video/out/opengl/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c index 59a7eda31c..00cf4b929f 100644 --- a/video/out/opengl/context.c +++ b/video/out/opengl/context.c @@ -214,6 +214,8 @@ int ra_gl_ctx_color_depth(struct ra_swapchain *sw) bool ra_gl_ctx_start_frame(struct ra_swapchain *sw, struct ra_fbo *out_fbo) { struct priv *p = sw->priv; + if (!out_fbo) + return true; *out_fbo = (struct ra_fbo) { .tex = p->wrapped_fb, .flip = !p->params.flipped, // OpenGL FBs are normally flipped -- cgit v1.2.3