summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2008-09-22 11:48:26 +0200
committerJonathan White <[email protected]>2008-09-22 10:47:06 -0600
commit5106f1b9acef1c5fa8b97b04c33f00c92dfb4c43 (patch)
tree9823b8c76af01e7240dd303e997fd6ee19a0bcac /src/mesa/main
parentc9122c0c0308345e2df2448bcb189d0f5d505909 (diff)
Remove incorrect test from mmAllocMem.
0 is a perfectly valid alignment shift, see e.g. driTexturesGone() which was broken by this.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/mm.c2
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) {