summaryrefslogtreecommitdiff
path: root/src/i965_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-13 14:10:01 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-13 14:14:40 +0100
commit5fea2478cd5ab4156c182210d28c5e27e5f67403 (patch)
treeceb4595e8d1d766efef45f9847778e0d5fb9a57c /src/i965_render.c
parente499f207c161d1b3cd75f065dc89021ff5f40b63 (diff)
Lots of trivial semantic fixes
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i965_render.c')
-rw-r--r--src/i965_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index 75c99e24..9d45944d 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -2087,11 +2087,12 @@ i965_prepare_composite(int op, PicturePtr source_picture,
intel->transform[0] = source_picture->transform;
composite_op->is_affine = intel_transform_is_affine(intel->transform[0]);
- if (!mask) {
+ if (mask_picture == NULL) {
intel->transform[1] = NULL;
intel->scale_units[1][0] = -1;
intel->scale_units[1][1] = -1;
} else {
+ assert(mask != NULL);
intel->transform[1] = mask_picture->transform;
intel->scale_units[1][0] = 1. / mask->drawable.width;
intel->scale_units[1][1] = 1. / mask->drawable.height;