Mesa (gallium-0.2): Remove incorrect test from mmAllocMem.
Jonathan White
jwhitetg at kemper.freedesktop.org
Mon Sep 22 16:52:28 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 5106f1b9acef1c5fa8b97b04c33f00c92dfb4c43
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5106f1b9acef1c5fa8b97b04c33f00c92dfb4c43
Author: Michel Dänzer <michel at tungstengraphics.com>
Date: Mon Sep 22 11:48:26 2008 +0200
Remove incorrect test from mmAllocMem.
0 is a perfectly valid alignment shift, see e.g. driTexturesGone() which was
broken by this.
---
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 6f381b0..d430bcd 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) {
More information about the mesa-commit
mailing list