if (list == 0)
return;
- dlist = _mesa_lookup_list(ctx, list, false);
+ dlist = _mesa_lookup_list(ctx, list, true);
if (!dlist)
return;
check_atlas_for_deleted_list, &list);
}
- _mesa_HashLockMutex(ctx->Shared->DisplayList);
_mesa_delete_list(ctx, dlist);
_mesa_HashRemoveLocked(ctx->Shared->DisplayList, list);
- _mesa_HashUnlockMutex(ctx->Shared->DisplayList);
}
}
}
+ _mesa_HashLockMutex(ctx->Shared->DisplayList);
for (i = list; i < list + range; i++) {
destroy_list(ctx, i);
}
+ _mesa_HashUnlockMutex(ctx->Shared->DisplayList);
}
list->CurrentList->begins_with_a_nop = false;
}
- _mesa_HashUnlockMutex(ctx->Shared->DisplayList);
-
/* Destroy old list, if any */
destroy_list(ctx, ctx->ListState.CurrentList->Name);
ctx->ListState.CurrentList->Name,
ctx->ListState.CurrentList, true);
-
if (MESA_VERBOSE & VERBOSE_DISPLAY_LIST)
mesa_print_display_list(ctx->ListState.CurrentList->Name);
+ _mesa_HashUnlockMutex(ctx->Shared->DisplayList);
+
ctx->ListState.CurrentList = NULL;
ctx->ListState.CurrentBlock = NULL;
ctx->ListState.CurrentPos = 0;