pb: don't assert(0) on failure to allocate - this is a normal condition in many drivers

This commit is contained in:
Keith Whitwell 2008-06-12 14:39:57 +01:00
parent 34ff12ca1f
commit 23d340c9ed

View 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;