From: Keith Whitwell Date: Thu, 12 Jun 2008 13:39:57 +0000 (+0100) Subject: pb: don't assert(0) on failure to allocate - this is a normal condition in many drivers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23d340c9edbbe64a99478b922c008ae3e2ec7103;p=mesa.git pb: don't assert(0) on failure to allocate - this is a normal condition in many drivers --- diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c index 66256f3fa70..0a1e8c83b10 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c @@ -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;