mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
dri3: Set stride and size for old clients
For old clients using the fd_from_pixmap entrypoint, make sure we set stride and size correctly. Noticed by inspection. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
committed by
Adam Jackson
parent
78574a66b5
commit
8ff1cdb2bf
@@ -161,6 +161,8 @@ dri3_fd_from_pixmap(PixmapPtr pixmap, CARD16 *stride, CARD32 *size)
|
||||
return -1;
|
||||
}
|
||||
|
||||
*stride = strides[0];
|
||||
*size = size[0];
|
||||
return fds[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user