Revert "dri3: use dixDestroyPixmap() instead of direct driver call"
This reverts commit 4694b8488e.
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2020>
This commit is contained in:
parent
a5a89e9fa2
commit
b91182cc16
|
|
@ -244,7 +244,7 @@ proc_dri3_pixmap_from_buffer(ClientPtr client)
|
|||
pixmap, X11_RESTYPE_NONE, NULL, DixCreateAccess);
|
||||
|
||||
if (rc != Success) {
|
||||
dixDestroyPixmap(pixmap, 0);
|
||||
(*drawable->pScreen->DestroyPixmap) (pixmap);
|
||||
return rc;
|
||||
}
|
||||
if (!AddResource(stuff->pixmap, X11_RESTYPE_PIXMAP, (void *) pixmap))
|
||||
|
|
@ -508,7 +508,7 @@ proc_dri3_pixmap_from_buffers(ClientPtr client)
|
|||
pixmap, X11_RESTYPE_NONE, NULL, DixCreateAccess);
|
||||
|
||||
if (rc != Success) {
|
||||
dixDestroyPixmap(pixmap, 0);
|
||||
(*screen->DestroyPixmap) (pixmap);
|
||||
return rc;
|
||||
}
|
||||
if (!AddResource(stuff->pixmap, X11_RESTYPE_PIXMAP, (void *) pixmap))
|
||||
|
|
|
|||
Loading…
Reference in New Issue