Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change software rasterizer screenshot code due to change in api just …
…now.
  • Loading branch information
Sonicadvance1 committed Nov 16, 2013
1 parent 71d70d8 commit 4a9c8e6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/Core/VideoBackends/Software/Src/SWRenderer.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4a9c8e6

Please sign in to comment.