diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-01 01:57:11 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-01 01:57:11 +1100 |
commit | fb3e055ff500e530e9ec46317441688bf4d07e13 (patch) | |
tree | 7ac25e379ac06f91d8bb26b178f64b9cc19b9f68 /src/renderer/render.c | |
parent | b771fc06a4339f466c0864ad896d5a96aee7e35d (diff) |
image / textures !
Diffstat (limited to 'src/renderer/render.c')
-rw-r--r-- | src/renderer/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer/render.c b/src/renderer/render.c index 9dc47c2..ebade4f 100644 --- a/src/renderer/render.c +++ b/src/renderer/render.c @@ -224,7 +224,7 @@ texture texture_data_load(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, 0); + char* data = stbi_load(path, &width, &height, &num_channels, STBI_rgb_alpha); if (data) { DEBUG("loaded texture: %s", path); } else { |