pipebuffer: Fix reversed assertion.
authorMichel Dänzer <michel@tungstengraphics.com>
Thu, 7 Feb 2008 19:43:34 +0000 (19:43 +0000)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 15 Feb 2008 02:50:32 +0000 (13:50 +1100)
src/mesa/pipe/pipebuffer/pb_bufmgr_pool.c

index bcd4b3e2571d092b7864a85c5dce337834d3f09d..04477a865a540fc51caee58ce3c9ecd9e49c7e55 100644 (file)
@@ -170,7 +170,7 @@ pool_bufmgr_create_buffer(struct pb_manager *mgr,
    struct list_head *item;
 
    assert(size == pool->bufSize);
-   assert(desc->alignment % pool->bufAlign == 0);
+   assert(pool->bufAlign % desc->alignment == 0);
    
    _glthread_LOCK_MUTEX(pool->mutex);