kdrive: use dixDestroyPixmap() instead of direct driver call

Direct calls to ScreenRec->DestroyPixmap() blocks cleaning up the wrapping
jungle, so use the proper dix function instead.

See: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1754

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1711>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-30 17:57:52 +02:00
parent 0a54e24721
commit 4378656cbb

View File

@ -1655,7 +1655,7 @@ ephyr_glamor_create_screen_resources(ScreenPtr pScreen)
* Thus, delete the current screen pixmap, and put a fresh one in. * Thus, delete the current screen pixmap, and put a fresh one in.
*/ */
old_screen_pixmap = pScreen->GetScreenPixmap(pScreen); old_screen_pixmap = pScreen->GetScreenPixmap(pScreen);
pScreen->DestroyPixmap(old_screen_pixmap); dixDestroyPixmap(old_screen_pixmap, 0);
screen_pixmap = pScreen->CreatePixmap(pScreen, screen_pixmap = pScreen->CreatePixmap(pScreen,
pScreen->width, pScreen->width,