summaryrefslogtreecommitdiff
path: root/src/new_render/render.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-21 20:23:52 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-21 20:23:52 +1000
commitaf79d7428895413eb64bcb640e07ebb26b1c19f3 (patch)
tree2896b9db9be810ca0ee914151d50ca3a3fe325f2 /src/new_render/render.c
parent66b1e02847e08b8e66e9969f0a3d138c15cc70f4 (diff)
quads kinda work
Diffstat (limited to 'src/new_render/render.c')
-rw-r--r--src/new_render/render.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/new_render/render.c b/src/new_render/render.c
index 08ef2c0..adf56b1 100644
--- a/src/new_render/render.c
+++ b/src/new_render/render.c
@@ -3,6 +3,7 @@
*/
#include "render.h"
+#include <assert.h>
#include <glfw3.h>
#include "camera.h"
#include "core.h"
@@ -185,9 +186,12 @@ TextureData TextureDataLoad(const char* path, bool invert_y) {
channel_type = GL_RGB;
format = TEXTURE_FORMAT_8_8_8_RGB_UNORM;
}
- TextureDesc desc = { .extents = { width, height },
- .format = format,
- .tex_type = TEXTURE_TYPE_2D };
+ TextureDesc desc = {
+ .extents = { width, height },
+ .format = format,
+ .num_channels = num_channels,
+ .tex_type = TEXTURE_TYPE_2D,
+ };
return (TextureData){ .description = desc, .image_data = data };
}