diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-12 01:41:55 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-12 01:41:55 +0000 |
commit | 69d89f61898123f7ce6cd6206821dab0cbafbb74 (patch) | |
tree | 0752b42c64c30846b0cced261d1bbde6b59134ff /gfx | |
parent | Add flex support to root (diff) | |
download | ilt-69d89f61898123f7ce6cd6206821dab0cbafbb74.tar.bz2 ilt-69d89f61898123f7ce6cd6206821dab0cbafbb74.tar.xz ilt-69d89f61898123f7ce6cd6206821dab0cbafbb74.zip |
Flip texture images to match OpenGL expectations
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/image.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/image.cpp b/gfx/image.cpp index 20c862f..1fe2d31 100644 --- a/gfx/image.cpp +++ b/gfx/image.cpp @@ -5,6 +5,7 @@ Image::Image(const char * fileName, int flags) : width {}, height {}, numComponents {} { + stbi_set_flip_vertically_on_load(1); unsigned char * bytes = stbi_load(fileName, &width, &height, &numComponents, flags); if (!bytes) { |