summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
Diffstat (limited to 'video/out')
-rw-r--r--video/out/opengl/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c
index 6c8821f6c7..85be3a0ace 100644
--- a/video/out/opengl/context.c
+++ b/video/out/opengl/context.c
@@ -260,7 +260,7 @@ struct mp_image *ra_gl_ctx_screenshot(struct ra_swapchain *sw)
// OpenGL FB is also read in flipped order, so we need to flip when the
// rendering is *not* flipped, which in our case is whenever
// p->params.flipped is true. I hope that made sense
- if (p->params.flipped)
+ if (screen && p->params.flipped)
mp_image_vflip(screen);
return screen;