From 02a821e86f44cf9f92785026b664e84db708d813 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sun, 25 Feb 2024 16:00:28 -0800 Subject: Fix gfx_imm_set_model_matrix(). --- gfx/src/renderer/imm_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/src/renderer/imm_renderer.c b/gfx/src/renderer/imm_renderer.c index 87e7717..e8c0410 100644 --- a/gfx/src/renderer/imm_renderer.c +++ b/gfx/src/renderer/imm_renderer.c @@ -227,7 +227,7 @@ void gfx_imm_set_model_matrix(ImmRenderer* renderer, const mat4* model) { assert(renderer); assert(model); imm_renderer_flush(renderer); - renderer->matrix_stack[0] = mat4_id(); + renderer->matrix_stack[0] = *model; renderer->stack_pointer = 0; update_shader_model_matrix(renderer); } -- cgit v1.2.3