Fix image being saved upside-down

This commit is contained in:
Stephen Seo 2024-01-23 17:06:51 +09:00
parent 50015a34ae
commit 747e4bb370

View file

@ -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