diff options
Diffstat (limited to 'video/out/vo_opengl_old.c')
-rw-r--r-- | video/out/vo_opengl_old.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_opengl_old.c b/video/out/vo_opengl_old.c index 3f9e4b0f38..16da97cc35 100644 --- a/video/out/vo_opengl_old.c +++ b/video/out/vo_opengl_old.c @@ -2015,6 +2015,8 @@ static mp_image_t *get_screenshot(struct vo *vo) mp_image_t *image = mp_image_alloc(p->image_format, p->texture_width, p->texture_height); + if (!image) + return NULL; glDownloadTex(gl, p->target, p->gl_format, p->gl_type, image->planes[0], image->stride[0]); |