summaryrefslogtreecommitdiff
path: root/src/sna/sna_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-24 07:34:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-24 09:01:58 +0100
commit6e2cee27c379278b0321fd1db34ed80c439115a7 (patch)
treea2e0dc8ff290653e4775a96cff0f364613854308 /src/sna/sna_render.c
parent706480bde6120f84388a99085ed3d1cc3b759697 (diff)
sna/dri2: Add a dash more asserts
References: https://bugs.freedesktop.org/attachment.cgi?id=101618 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render.c')
-rw-r--r--src/sna/sna_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c
index 3b8a54af..e8060b41 100644
--- a/src/sna/sna_render.c
+++ b/src/sna/sna_render.c
@@ -1348,10 +1348,10 @@ sna_render_picture_convolve(struct sna *sna,
DBG(("%s: pixmap allocation failed\n", __FUNCTION__));
return -1;
}
- assert(__sna_pixmap_get_bo(tmp));
tmp = NULL;
bo = __sna_pixmap_get_bo(pixmap);
+ assert(bo);
if (sna->render.clear(sna, pixmap, bo))
tmp = CreatePicture(0, &pixmap->drawable,
PictureMatchFormat(screen, depth, channel->pict_format),