From 22f727cc69a897cfb79ddf77b7f11539477b3390 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Sun, 10 Nov 2013 00:14:01 +0100 Subject: [PATCH] D3D: Use D3DX11 for taking screenshots. --- Source/Core/VideoBackends/D3D/Src/Render.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/VideoBackends/D3D/Src/Render.cpp b/Source/Core/VideoBackends/D3D/Src/Render.cpp index 380ab7fa83..1a4421f3c5 100644 --- a/Source/Core/VideoBackends/D3D/Src/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Src/Render.cpp @@ -704,8 +704,7 @@ bool Renderer::SaveScreenshot(const std::string &filename, const TargetRectangle D3D::context->Unmap(s_screenshot_texture, 0); // ready to be saved - //HRESULT hr = PD3DX11SaveTextureToFileA(D3D::context, s_screenshot_texture, D3DX11_IFF_PNG, filename.c_str()); - HRESULT hr = 0; + HRESULT hr = PD3DX11SaveTextureToFileA(D3D::context, s_screenshot_texture, D3DX11_IFF_PNG, filename.c_str()); if (SUCCEEDED(hr)) { OSD::AddMessage(StringFromFormat("Saved %i x %i %s", rc.GetWidth(),