diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-09 10:55:13 +1000 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-09 10:55:13 +1000 |
commit | 5e0f5662ae65d268db1bf1bc53c773ef9cba33ea (patch) | |
tree | 4a3a5b6b7cbb608f1de920476c67b549e064750a /src/renderer/render.c | |
parent | 6f94d87d74524b8726cf6f4b9b3a7f64562191e9 (diff) |
frames in flight. recreate swapchain
still has a few validation errors
Diffstat (limited to 'src/renderer/render.c')
-rw-r--r-- | src/renderer/render.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/renderer/render.c b/src/renderer/render.c index 799cba7..f73578e 100644 --- a/src/renderer/render.c +++ b/src/renderer/render.c @@ -61,7 +61,9 @@ bool renderer_init(renderer* ren) { return true; } void renderer_shutdown(renderer* ren) { - // gpu_device_destroy(ren->device); + gpu_swapchain_destroy(&ren->swapchain); + gpu_pipeline_destroy(&ren->static_opaque_pipeline); + gpu_backend_shutdown(); } void default_pipelines_init(renderer* ren) { @@ -77,4 +79,4 @@ void render_frame_draw(renderer* ren) {} void gfx_backend_draw_frame(renderer* ren, camera* camera, mat4 model, texture* tex) {} -void geo_set_vertex_colours(geometry_data* geo, vec4 colour) {}
\ No newline at end of file +void geo_set_vertex_colours(geometry_data* geo, vec4 colour) {} |