I'm writing a project using OpenGL, and loading the textures using stb_image.
Some of the textures are loaded flipped upside down (regarding the y-axis) so I use "stbi flip image vertically on load" to load them properly.
The problem is that some of the textures I load require flipping, and some not, But of course my code flipps them all. how can I check (before loading, or at least before flipping) whether or not to flip the image?