summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
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 e5f445889f..d080d6db1b 100644
--- a/src/mesa/main/mm.c
+++ b/src/mesa/main/mm.c
@@ -193,7 +193,7 @@ mmFindBlock(struct mem_block *heap, int start)
{
struct mem_block *p;
- for (p = heap->next_free; p != heap; p = p->next_free) {
+ for (p = heap->next; p != heap; p = p->next) {
if (p->ofs == start)
return p;
}