modesetting: clear bo in drmmode_create_front_bo

Fixes: https://github.com/X11Libre/xserver/issues/1740

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2025-12-30 21:25:06 +02:00
committed by Enrico Weigelt, metux IT consult
parent 05fe0b519f
commit 8cb69cd810

View File

@@ -1175,6 +1175,8 @@ static Bool
drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo,
unsigned width, unsigned height, unsigned bpp)
{
memset(bo, 0, sizeof(*bo));
bo->width = width;
bo->height = height;