projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fd15dd
)
Remove incorrect test from mmAllocMem.
author
Michel Dänzer
<michel@tungstengraphics.com>
Mon, 22 Sep 2008 09:48:26 +0000
(11:48 +0200)
committer
Michel Dänzer
<michel@tungstengraphics.com>
Mon, 22 Sep 2008 09:48:26 +0000
(11:48 +0200)
0 is a perfectly valid alignment shift, see e.g. driTexturesGone() which was
broken by this.
src/mesa/main/mm.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mm.c
b/src/mesa/main/mm.c
index 6f381b02a7faca599610f4d2f41948587383b63f..d430bcdb840b9150dfc461cb5ea452d7130424da 100644
(file)
--- 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) {