mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-03-08 11:30:31 +01:00
XQuartz: Fix the new ProcAppleDRIDestroyPixmap code REQUEST_SIZE_MATCH.
It had a copy and paste mistake that I didn't notice. :/
It was using the CreatePixmapReq.
Also add a missing B16 to the end of the length for the DestroyPixmapReq struct.
Now the AppleDRIDestroyPixmap request seem to work.
(cherry picked from commit 295fe25bd8)
This commit is contained in:
parent
225853d51d
commit
372977354c
2 changed files with 2 additions and 2 deletions
|
|
@ -331,7 +331,7 @@ ProcAppleDRIDestroyPixmap(ClientPtr client)
|
|||
DrawablePtr pDrawable;
|
||||
int rc;
|
||||
REQUEST(xAppleDRIDestroyPixmapReq);
|
||||
REQUEST_SIZE_MATCH(xAppleDRICreatePixmapReq);
|
||||
REQUEST_SIZE_MATCH(xAppleDRIDestroyPixmapReq);
|
||||
|
||||
rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0,
|
||||
DixReadAccess);
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ typedef struct {
|
|||
typedef struct {
|
||||
CARD8 reqType; /*1*/
|
||||
CARD8 driReqType; /*2*/
|
||||
CARD16 length; /*4*/
|
||||
CARD16 length B16; /*4*/
|
||||
CARD32 drawable B32; /*8*/
|
||||
} xAppleDRIDestroyPixmapReq;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue