diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2008-09-22 11:48:26 +0200 |
---|---|---|
committer | Jonathan White <jwhite@tungstengraphics.com> | 2008-09-22 10:47:06 -0600 |
commit | 5106f1b9acef1c5fa8b97b04c33f00c92dfb4c43 (patch) | |
tree | 9823b8c76af01e7240dd303e997fd6ee19a0bcac /src/mesa | |
parent | c9122c0c0308345e2df2448bcb189d0f5d505909 (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')
-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 6f381b02a7..d430bcdb84 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) { |