summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2017-05-09 22:32:21 +0200
committerRay <[email protected]>2017-05-09 22:32:21 +0200
commit7f6b16add4225eb42d85a73fef94ae29b672036d (patch)
tree570db978253a3951363d4fd974fd705fb21673bd /src/textures.c
parentbac50fbba5940de6e536157243f3e4ec3dee9d98 (diff)
downloadraylib-7f6b16add4225eb42d85a73fef94ae29b672036d.tar.gz
raylib-7f6b16add4225eb42d85a73fef94ae29b672036d.zip
HDR textures vertical flip
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/textures.c b/src/textures.c
index 115c8fff..f1b979d7 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -213,8 +213,12 @@ Image LoadImage(const char *fileName)
FILE *imFile = fopen(fileName, "rb");
+ stbi_set_flip_vertically_on_load(true);
+
// Load 32 bit per channel floats data
image.data = stbi_loadf_from_file(imFile, &image.width, &image.height, &imgBpp, 0);
+
+ stbi_set_flip_vertically_on_load(false);
fclose(imFile);