mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Api was too confusing for people.
This commit is contained in:
@@ -1825,7 +1825,11 @@ bool Renderer::SaveScreenshot(const std::string &filename, const TargetRectangle
|
||||
|
||||
// Turn image upside down
|
||||
FlipImageData(data, W, H, 4);
|
||||
return TextureToPng(data, W*4, filename.c_str(), W, H, false);
|
||||
bool success = TextureToPng(data, W*4, filename.c_str(), W, H, false);
|
||||
delete[] data;
|
||||
|
||||
return success;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -78,8 +78,9 @@ bool SaveTexture(const char* filename, u32 textarget, u32 tex, int virtual_width
|
||||
delete[] data;
|
||||
return false;
|
||||
}
|
||||
|
||||
return TextureToPng(data, width*4, filename, width, height, true);
|
||||
bool success = TextureToPng(data, width * 4, filename, width, height, true);
|
||||
delete[] data;
|
||||
return success;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user