diff options
-rw-r--r-- | video/out/opengl/context.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |