summaryrefslogtreecommitdiff
path: root/src/new_render
diff options
context:
space:
mode:
Diffstat (limited to 'src/new_render')
-rw-r--r--src/new_render/render.c4
-rw-r--r--src/new_render/render_frame.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/new_render/render.c b/src/new_render/render.c
index dcaa5a5..b5311c8 100644
--- a/src/new_render/render.c
+++ b/src/new_render/render.c
@@ -156,13 +156,15 @@ TextureData TextureDataLoad(const char* path, bool invert_y) {
stbi_set_flip_vertically_on_load(invert_y);
#pragma GCC diagnostic ignored "-Wpointer-sign"
- char* data = stbi_load(path, &width, &height, &num_channels, STBI_rgb);
+ char* data = stbi_load(path, &width, &height, &num_channels, 0);
if (data) {
DEBUG("loaded texture: %s", path);
} else {
WARN("failed to load texture");
}
+ // printf("width: %d height: %d num channels: %d\n", width, height, num_channels);
+
unsigned int channel_type;
GPU_TextureFormat format;
if (num_channels == 4) {
diff --git a/src/new_render/render_frame.c b/src/new_render/render_frame.c
index 9a95259..87c99e5 100644
--- a/src/new_render/render_frame.c
+++ b/src/new_render/render_frame.c
@@ -2,7 +2,7 @@
#include "render_frame.h"
#include <assert.h>
-#include "logos/threadpool.h"
+// #include "logos/threadpool.h"
#include "mem.h"
#include "render.h"