mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-16 08:18:14 +00:00
HDR textures vertical flip
This commit is contained in:
@@ -213,9 +213,13 @@ 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);
|
||||
|
||||
image.mipmaps = 1;
|
||||
|
Reference in New Issue
Block a user