mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 02:30:06 +01:00
miext/damage: Partial revert of "Only wrap into the GC ops chain if there's a listener (v3)"
Fixes regression from:4dc2a76740http://lists.x.org/archives/xorg-devel/2013-May/036241.html https://trac.macports.org/ticket/38993 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commitabf5d5ac12)
This commit is contained in:
parent
0a1628bca7
commit
94b7f26aed
1 changed files with 1 additions and 4 deletions
|
|
@ -439,10 +439,7 @@ damageValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable)
|
|||
drawableDamage(pDrawable);
|
||||
DAMAGE_GC_FUNC_PROLOGUE(pGC);
|
||||
(*pGC->funcs->ValidateGC) (pGC, changes, pDrawable);
|
||||
if (pDamage)
|
||||
pGCPriv->ops = pGC->ops; /* so it's not NULL, so FUNC_EPILOGUE does work */
|
||||
else
|
||||
pGCPriv->ops = NULL;
|
||||
pGCPriv->ops = pGC->ops; /* just so it's not NULL */
|
||||
DAMAGE_GC_FUNC_EPILOGUE(pGC);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue