From: Michel Dänzer Date: Mon, 22 Sep 2008 09:48:26 +0000 (+0200) Subject: Remove incorrect test from mmAllocMem. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78f4a695ad7140cd0148467f041e874afc655426;p=mesa.git Remove incorrect test from mmAllocMem. 0 is a perfectly valid alignment shift, see e.g. driTexturesGone() which was broken by this. --- diff --git a/src/mesa/main/mm.c b/src/mesa/main/mm.c index 6f381b02a7f..d430bcdb840 100644 --- a/src/mesa/main/mm.c +++ b/src/mesa/main/mm.c @@ -167,7 +167,7 @@ mmAllocMem(struct mem_block *heap, unsigned size, unsigned align2, unsigned star unsigned startofs = 0; unsigned endofs; - if (!heap || !align2 || !size) + if (!heap || !size) return NULL; for (p = heap->next_free; p != heap; p = p->next_free) {