diff options
author | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-19 15:52:14 +1000 |
---|---|---|
committer | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-19 15:52:14 +1000 |
commit | efb2d293d5e849fc96e4e386d55a7611795561aa (patch) | |
tree | cf4a2054a868ec4757a60c217d64b85413bc5766 /src/new_render/render.c | |
parent | 82515f9d90ac149984013f0d64c1cab37b349b29 (diff) |
clean up texture type handling a little bit
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) { |