miext/damage: Partial revert of "Only wrap into the GC ops chain if there's a listener (v3)"
Fixes regression from: 4dc2a76740
http://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>
This commit is contained in:
parent
e463607294
commit
abf5d5ac12
|
@ -382,10 +382,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…
Reference in New Issue