summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r--video/out/gl_video.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 57dec29759..27c3339997 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1699,6 +1699,12 @@ struct mp_image *gl_video_download_image(struct gl_video *p)
if (!p->have_image)
return NULL;
+ if (p->hwdec && p->hwdec->driver->download_image) {
+ struct mp_image *dlimage = p->hwdec->driver->download_image(p->hwdec);
+ mp_image_set_attributes(dlimage, &p->image_params);
+ return dlimage;
+ }
+
set_image_textures(p, vimg, NULL);
assert(p->texture_w >= p->image_params.w);