mirror of https://github.com/mpv-player/mpv
vo_drm: zero screen buffers in reconfig function.
This commit is contained in:
parent
5f21a68ce9
commit
1e2e504349
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue