From 963554cd8547f3076b2cdb6ce1b7ccdaec80ea74 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 22 Apr 2025 08:45:58 +1000 Subject: [PATCH] fixed global init flags not being flagged --- src/allocators.c | 1 + src/assets.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/allocators.c b/src/allocators.c index 788e886..7ea1a31 100644 --- a/src/allocators.c +++ b/src/allocators.c @@ -203,6 +203,7 @@ static void AllocGrow(usize size) static void GlobalFreeListInit(usize size) { FreeListInit(&FL_ALLOC, size); + FL_GLOBAL_INIT = true; } static rawptr FLMemAlloc(usize size) diff --git a/src/assets.c b/src/assets.c index e2b1aed..2ecc0d3 100644 --- a/src/assets.c +++ b/src/assets.c @@ -32,6 +32,8 @@ static void LoadAssetPackHeader() MemCpy(Texture_Assets, &ASSET_PACK[File_Header.asset_offsets[TEXTURE_ASSET]], sizeof(AssetFile) * File_Header.asset_counts[TEXTURE_ASSET]); MemCpy(Shader_Assets, &ASSET_PACK[File_Header.asset_offsets[SHADER_ASSET]], sizeof(AssetFile) * File_Header.asset_counts[SHADER_ASSET]); + + ASSET_HEADER_LOADED = true; } // ::Assets::Init::Functions::End::