mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 23:20:03 +01:00
glx: Check for byte-swapping in SetReplyHeader
Check for the need to byte-swap when attempting to display GL apps between a big-endian server and little-endian client or vice versa. Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1127
This commit is contained in:
parent
bcb1de600a
commit
2de5ded3c6
1 changed files with 3 additions and 0 deletions
|
|
@ -92,6 +92,9 @@ static void SetReplyHeader(ClientPtr client, void *replyPtr)
|
|||
xGenericReply *rep = (xGenericReply *) replyPtr;
|
||||
rep->type = X_Reply;
|
||||
rep->sequenceNumber = client->sequence;
|
||||
if (client->swapped) {
|
||||
swaps(&rep->sequenceNumber);
|
||||
}
|
||||
rep->length = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue