Fixed minor bug causing huge memory leak.
parent
b2be6558e7
commit
46c3075258
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue