summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_drm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c
index b67e1b1a52..71c73bd6f8 100644
--- a/video/out/vo_drm.c
+++ b/video/out/vo_drm.c
@@ -475,6 +475,10 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags)
mp_image_params_guess_csp(&p->sws->dst);
mp_image_set_params(p->cur_frame, &p->sws->dst);
+ struct modeset_buf *buf = p->dev->bufs;
+ memset(buf[0].map, 0, buf[0].size);
+ memset(buf[1].map, 0, buf[1].size);
+
if (mp_sws_reinit(p->sws) < 0)
return -1;