potential fix for annoying bug

This commit is contained in:
Tuomas Katajisto 2026-03-22 12:23:38 +02:00
parent 20b6b8ae29
commit d575db6f37

View File

@ -64,7 +64,10 @@ buffer_for_fetch :: (type: Fetch_Type) -> (*u8, u64) {
fetch_callback :: (res: *sfetch_response_t) #c_call { fetch_callback :: (res: *sfetch_response_t) #c_call {
push_context,defer_pop default_context; push_context,defer_pop default_context;
handle_fetch_response(res);
}
handle_fetch_response :: (res: *sfetch_response_t) {
req := g_asset_manager.current_fetch; req := g_asset_manager.current_fetch;
g_asset_manager.is_fetching = false; g_asset_manager.is_fetching = false;
if req.type == { if req.type == {