Api was too confusing for people.
This commit is contained in:
1 parent
2025f00f88
commit
71d70d896f
7 files changed
+16
-8
No files matched your search
@@ -145,6 +145,8 @@ void SWRenderer::DrawTexture(u8 *texture, int width, int height)
|
||||
u8 *data = new u8[width * 4 * height];
|
||||
memcpy(data, texture, sizeof(u8) * 4 * width * height);
|
||||
TextureToPng(data, width*4, s_sScreenshotName.c_str(), width, height, false);
|
||||
delete[] data;
|
||||
|
||||
// Reset settings
|
||||
s_sScreenshotName.clear();
|
||||
s_bScreenshot = false;
|
||||
|
||||
Reference in new issue
Block a user