From 529a603128d5e9dc4701322f44961f165e2183e1 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Sun, 14 Jul 2024 21:47:25 +1000 Subject: generate api docs python --- src/core/core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/core.c') diff --git a/src/core/core.c b/src/core/core.c index 602d35c..385479d 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -34,6 +34,7 @@ void Core_Bringup() { .scr_height = SCR_HEIGHT, .clear_colour = (Vec3){ .08, .08, .1 } }; + g_core.renderer = malloc(Renderer_GetMemReqs()); // initialise all subsystems if (!Renderer_Init(conf, g_core.renderer)) { // FATAL("Failed to start renderer"); @@ -61,6 +62,7 @@ void Core_Bringup() { void Core_Shutdown() { Input_Shutdown(&g_core.input); Renderer_Shutdown(g_core.renderer); + free(g_core.renderer); } bool ShouldExit() { -- cgit v1.2.3-70-g09d2