Remove incorrect test from mmAllocMem.
0 is a perfectly valid alignment shift, see e.g. driTexturesGone() which was broken by this.
This commit is contained in:
parent
c9122c0c03
commit
5106f1b9ac
|
@ -167,7 +167,7 @@ mmAllocMem(struct mem_block *heap, unsigned size, unsigned align2, unsigned star
|
||||||
unsigned startofs = 0;
|
unsigned startofs = 0;
|
||||||
unsigned endofs;
|
unsigned endofs;
|
||||||
|
|
||||||
if (!heap || !align2 || !size)
|
if (!heap || !size)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
for (p = heap->next_free; p != heap; p = p->next_free) {
|
for (p = heap->next_free; p != heap; p = p->next_free) {
|
||||||
|
|
Loading…
Reference in New Issue