uxa: Protect against valid SourcePict in uxa_acquire_mask()

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2010-05-10 23:33:52 +01:00
parent a8761585ef
commit 1ecd89be03
1 changed files with 7 additions and 2 deletions

View File

@ -740,8 +740,13 @@ uxa_acquire_mask(ScreenPtr pScreen,
if (uxa_screen->info->check_composite_texture &&
uxa_screen->info->check_composite_texture(pScreen, pPict)) {
*out_x = x + pPict->pDrawable->x;
*out_y = y + pPict->pDrawable->y;
if (pPict->pDrawable) {
*out_x = x + pPict->pDrawable->x;
*out_y = y + pPict->pDrawable->y;
} else {
*out_x = x;
*out_y = y;
}
return pPict;
}