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:
committed by
Jonathan White
parent
c9122c0c03
commit
5106f1b9ac
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user