Fixed minor bug causing huge memory leak.

main
sixtenhugosson 2023-12-26 11:53:10 +01:00
parent b2be6558e7
commit 46c3075258
2 changed files with 6 additions and 8 deletions

View File

@ -175,7 +175,7 @@ static void ArenaPopTo(arena *Arena, u64 Position)
arena *Target = Arena; arena *Target = Arena;
for(int ArenaIndex = 0; ArenaIndex < Position/Arena->Size; ++ArenaIndex) for(int ArenaIndex = 0; ArenaIndex < Position/Arena->Size; ++ArenaIndex)
{ {
Target = Arena->Next; Target = Target->Next;
} }
// sixten: deallocate all arenas that are no longer needed // sixten: deallocate all arenas that are no longer needed

View File

@ -346,8 +346,6 @@ static void SV_DrawBackground(scene_view *SceneView, ui_box *Box, render_group *
render_handle Texture = TextureFromAssetID(SceneView->Runtime.Compiled.BackgroundTexture); render_handle Texture = TextureFromAssetID(SceneView->Runtime.Compiled.BackgroundTexture);
//- sixten: render background //- sixten: render background
// sixten(TODO, but soon): Currently we add Box->Rect.Min to everything, but that should really be a transform
// on the render group.
#if 0 #if 0
persist r32 Time = 0; persist r32 Time = 0;
Time += 1 / 1200.0f; Time += 1 / 1200.0f;