diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-05-18 15:30:41 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-05-18 15:30:41 +1000 |
commit | c69fab91c3cd8976ad660939765ca9a5e32a239a (patch) | |
tree | 0e9bf9ff8bf93a981701b9216bf386c1ef8fd7bc /src/renderer/render.c | |
parent | fcaf838886efc3c12f60b47c021c6a85965eb6e9 (diff) |
use the new pool allocators for buffers in backend
Diffstat (limited to 'src/renderer/render.c')
-rw-r--r-- | src/renderer/render.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 = |