From 7f6b16add4225eb42d85a73fef94ae29b672036d Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 9 May 2017 22:32:21 +0200 Subject: [PATCH] HDR textures vertical flip --- src/textures.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/textures.c b/src/textures.c index 115c8fff1..f1b979d7f 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);