From c69fab91c3cd8976ad660939765ca9a5e32a239a Mon Sep 17 00:00:00 2001 From: Omniscient Date: Sat, 18 May 2024 15:30:41 +1000 Subject: use the new pool allocators for buffers in backend --- src/renderer/render.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/renderer/render.c') diff --git a/src/renderer/render.c b/src/renderer/render.c index c83678b..b06620b 100644 --- a/src/renderer/render.c +++ b/src/renderer/render.c @@ -49,6 +49,7 @@ bool renderer_init(renderer* ren) { DEBUG("Initialise GPU resource pools"); arena pool_arena = arena_create(malloc(1024 * 1024), 1024 * 1024); + ren->resource_pools = arena_alloc(&pool_arena, sizeof(struct resource_pools)); resource_pools_init(&pool_arena, ren->resource_pools); // ren->blinn_phong = -- cgit v1.2.3-70-g09d2