Api was too confusing for people.

This commit is contained in:
Matthew Parlane
2013-11-17 10:34:34 +13:00
parent 2025f00f88
commit 71d70d896f
7 changed files with 16 additions and 8 deletions

View File

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