pb: don't assert(0) on failure to allocate - this is a normal condition in many drivers
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 12 Jun 2008 13:39:57 +0000 (14:39 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 12 Jun 2008 13:41:25 +0000 (14:41 +0100)
src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c

index 66256f3..0a1e8c8 100644 (file)
@@ -184,7 +184,6 @@ mm_bufmgr_create_buffer(struct pb_manager *mgr,
       
       mm_buf->block = mmAllocMem(mm->heap, size, mm->align2, 0);
       if(!mm_buf->block) {
-        assert(0);
          FREE(mm_buf);
          _glthread_UNLOCK_MUTEX(mm->mutex);
          return NULL;