Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix non-HAVE_WX case
  • Loading branch information
comex committed Nov 3, 2013
1 parent 5f72542 commit cd46138
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Source/Core/VideoBackends/OGL/Src/Render.cpp
Expand Up @@ -22,7 +22,6 @@
#include "DriverDetails.h"
#include "VideoConfig.h"
#include "Statistics.h"
#include "ImageWrite.h"
#include "PixelEngine.h"
#include "Render.h"
#include "BPStructs.h"
Expand Down
5 changes: 3 additions & 2 deletions Source/Core/VideoCommon/Src/RenderBase.cpp
Expand Up @@ -35,6 +35,7 @@
#include "WxUtils.h"
#include <wx/image.h>
#endif
#include "ImageWrite.h"

#include <cmath>
#include <string>
Expand Down Expand Up @@ -308,8 +309,8 @@ void Renderer::SaveScreenshot(u8* ptr, size_t width, size_t height)
OSD::AddMessage("Saving Screenshot... ", 2000);

#else
SaveTGA(filename.c_str(), W, H, data);
free(data);
SaveTGA(s_sScreenshotName.c_str(), width, height, ptr);
free(ptr);
#endif

s_sScreenshotName.clear();
Expand Down

0 comments on commit cd46138

Please sign in to comment.