diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-05 02:19:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-05 02:19:26 +0100 |
commit | d46cc00b3cd903bfaf37ad7d4a60676c4b346983 (patch) | |
tree | 7a35f69d4c6dd328751c88e2cdaf9ad89d4196db /src | |
parent | 3c1f58fe45e8f4f18c45733f862ca1f290dde84d (diff) |
sna/dri: Assert that our pixmaps sizes are invariant
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_dri.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index a10efc7b..36b40a74 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -223,11 +223,11 @@ sna_dri_create_buffer(DrawablePtr drawable, dri_drawable_type, NULL, DixWriteAccess); if (buffer) { private = get_private(buffer); - if (private->pixmap == pixmap && - private->width == pixmap->drawable.width && - private->height == pixmap->drawable.height) { + if (private->pixmap == pixmap) { DBG(("%s: reusing front buffer attachment\n", __FUNCTION__)); + assert(private->width == pixmap->drawable.width); + assert(private->height == pixmap->drawable.height); private->refcnt++; return buffer; } |