ref: fce34d64562f193577e4b90df5f3e3b6d9d78eeb
parent: 426d3b62933d36d8344fba9aecd1acbd9d4c564a
author: Jacob Moody <moody@posixcafe.org>
date: Fri Aug 25 19:28:55 EDT 2023
fix TODO for mat init
--- a/src/render_software.c
+++ b/src/render_software.c
@@ -21,7 +21,6 @@
static int32_t screen_ppr;
static vec2i_t screen_size;
-/* TODO(moody): FIX */
static mat4_t view_mat;
static mat4_t mvp_mat;
static mat4_t projection_mat;
@@ -37,6 +36,10 @@
render_set_screen_size(screen_size);
textures_len = 0;
+ view_mat = mat4_identity();
+ mvp_mat = mat4_identity();
+ projection_mat = mat4_identity();
+ sprite_mat = mat4_identity();
rgba_t white_pixels[4] = {
rgba(128,128,128,255), rgba(128,128,128,255),
rgba(128,128,128,255), rgba(128,128,128,255)