diff options
author | Michel Dänzer <[email protected]> | 2008-09-22 11:48:26 +0200 |
---|---|---|
committer | Jonathan White <[email protected]> | 2008-09-22 10:47:06 -0600 |
commit | 5106f1b9acef1c5fa8b97b04c33f00c92dfb4c43 (patch) | |
tree | 9823b8c76af01e7240dd303e997fd6ee19a0bcac | |
parent | c9122c0c0308345e2df2448bcb189d0f5d505909 (diff) |
Remove incorrect test from mmAllocMem.
0 is a perfectly valid alignment shift, see e.g. driTexturesGone() which was
broken by this.
-rw-r--r-- | src/mesa/main/mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |