Initialize slots to 0

main
noah metz 2024-10-21 10:31:23 -06:00
parent 7b23625859
commit 5e74250fd3
1 changed files with 2 additions and 0 deletions

@ -1060,7 +1060,9 @@ VkResult create_ui_context(
memory->max_textures = max_textures;
memory->max_fonts = max_fonts;
memory->texture_slots = malloc(max_textures);
memset(memory->texture_slots, 0, max_textures);
memory->font_slots = malloc(max_fonts);
memset(memory->font_slots, 0, max_fonts);
return VK_SUCCESS;
}