summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2008-09-22 11:48:26 +0200
committerMichel Dänzer <[email protected]>2008-09-22 11:48:26 +0200
commit78f4a695ad7140cd0148467f041e874afc655426 (patch)
tree27bd55d8fe8f1e8fba0a40b766834aad09b94a9f /src/mesa/main
parent6fd15dd80666ccb1e9b99cedd306e32cc7cee989 (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) {