diff options
Diffstat (limited to 'src/new_render/render.c')
-rw-r--r-- | src/new_render/render.c | 4 |
1 files changed, 3 insertions, 1 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) { |