From 69d89f61898123f7ce6cd6206821dab0cbafbb74 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 12 Feb 2021 01:41:55 +0000 Subject: Flip texture images to match OpenGL expectations --- gfx/image.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gfx') 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) { -- cgit v1.2.3