Revert "exa: avoid calling non existent SourceValidate callback"
This reverts commit daa6f9308f
.
This one checked pScreen->SourceValidate instead of
pExaScr->SourceValidate which would cause a segfault when
pExaScr->SourceValidate was NULL.
This commit is contained in:
parent
daa6f9308f
commit
0e6e75b04e
|
@ -462,12 +462,10 @@ ExaSrcValidate(DrawablePtr pDrawable,
|
||||||
REGION_UNION(pScreen, dst, dst, ®);
|
REGION_UNION(pScreen, dst, dst, ®);
|
||||||
REGION_UNINIT(pScreen, ®);
|
REGION_UNINIT(pScreen, ®);
|
||||||
|
|
||||||
if (pScreen->SourceValidate) {
|
|
||||||
swap(pExaScr, pScreen, SourceValidate);
|
swap(pExaScr, pScreen, SourceValidate);
|
||||||
pScreen->SourceValidate(pDrawable, x, y, width, height);
|
pScreen->SourceValidate(pDrawable, x, y, width, height);
|
||||||
swap(pExaScr, pScreen, SourceValidate);
|
swap(pExaScr, pScreen, SourceValidate);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
ExaPrepareCompositeReg(ScreenPtr pScreen,
|
ExaPrepareCompositeReg(ScreenPtr pScreen,
|
||||||
|
|
Loading…
Reference in New Issue