summaryrefslogtreecommitdiff
path: root/gfx/image.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-12 01:41:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-12 01:41:55 +0000
commit69d89f61898123f7ce6cd6206821dab0cbafbb74 (patch)
tree0752b42c64c30846b0cced261d1bbde6b59134ff /gfx/image.cpp
parentAdd flex support to root (diff)
downloadilt-69d89f61898123f7ce6cd6206821dab0cbafbb74.tar.bz2
ilt-69d89f61898123f7ce6cd6206821dab0cbafbb74.tar.xz
ilt-69d89f61898123f7ce6cd6206821dab0cbafbb74.zip
Flip texture images to match OpenGL expectations
Diffstat (limited to 'gfx/image.cpp')
-rw-r--r--gfx/image.cpp1
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) {