mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-17 19:50:22 +01:00
backing drawable if the serial numbers differ. Fixes crash in XAA which
occurred when the DDX bumped the serial number on the backing drawable and
expected it to get re-validated, and we didn't because the wrapped drawable
hadn't been bumped.
(cherry picked from 53f74b6aa9 commit)
This commit is contained in:
parent
8348131abb
commit
1628bdcd64
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "gcstruct.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "cw.h"
|
||||
|
||||
#define SETUP_BACKING_DST(_pDst, _pGC) \
|
||||
|
|
@ -43,6 +44,9 @@
|
|||
&src_off_y)
|
||||
|
||||
#define PROLOGUE(pGC) do { \
|
||||
if (pBackingGC->serialNumber != pBackingDst->serialNumber) { \
|
||||
ValidateGC(pBackingDst, pBackingGC); \
|
||||
} \
|
||||
pGC->funcs = pGCPrivate->wrapFuncs;\
|
||||
pGC->ops = pGCPrivate->wrapOps;\
|
||||
} while (0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue