mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Change software rasterizer screenshot code due to change in api just now.
This commit is contained in:
@ -142,11 +142,7 @@ void SWRenderer::DrawTexture(u8 *texture, int width, int height)
|
||||
if (s_bScreenshot)
|
||||
{
|
||||
std::lock_guard<std::mutex> lk(s_criticalScreenshot);
|
||||
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;
|
||||
|
||||
TextureToPng(texture, width*4, s_sScreenshotName.c_str(), width, height, false);
|
||||
// Reset settings
|
||||
s_sScreenshotName.clear();
|
||||
s_bScreenshot = false;
|
||||
|
Reference in New Issue
Block a user