From 747e4bb3703eac197a028fe910dfe41afd890d90 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 23 Jan 2024 17:06:51 +0900 Subject: [PATCH] Fix image being saved upside-down --- src/state.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state.cpp b/src/state.cpp index ef34e36..3fa4c95 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -423,6 +423,7 @@ bool Tri::State::do_save() { draw_to_target(&saveTexture); Image saveImage = LoadImageFromTexture(saveTexture.texture); + ImageFlipVertical(&saveImage); UnloadRenderTexture(saveTexture); if(ExportImage(saveImage, saveFilenameBuffer.data())) { #ifndef NDEBUG