diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2013-06-03 13:01:23 -0400 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2013-06-03 18:35:53 -0400 |
commit | 2c83b465b336a012f2d2716940bf483358388000 (patch) | |
tree | fae4e9b40b2918055c92493d9762ee2ad4c3aea4 /src | |
parent | ec6ee6a112dc38cab563779583944dba9393f385 (diff) |
Deal with pPict->pDrawable == NULL for source-only pictures.
Falling back to software rendering for such source pictures
(solid/gradient).
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/atimach64render.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/atimach64render.c b/src/atimach64render.c index ffde2cb..8d259fa 100644 --- a/src/atimach64render.c +++ b/src/atimach64render.c @@ -339,10 +339,13 @@ Mach64GetOrder(int val, int *shift) static Bool Mach64CheckTexture(PicturePtr pPict) { - int w = pPict->pDrawable->width; - int h = pPict->pDrawable->height; + int h,w; int l2w, l2h, level, i; + if (pPict->pDrawable == NULL) + return FALSE; + w = pPict->pDrawable->width; + h = pPict->pDrawable->height; for (i = 0; i < MACH64_NR_TEX_FORMATS; i++) { if (Mach64TexFormats[i].pictFormat == pPict->format) break; |