From af79d7428895413eb64bcb640e07ebb26b1c19f3 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:23:52 +1000 Subject: quads kinda work --- src/new_render/render.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/new_render/render.c') 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 #include #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 }; } -- cgit v1.2.3-70-g09d2