Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
D3D: Use D3DX11 for taking screenshots.
  • Loading branch information
neobrain committed Nov 9, 2013
1 parent 0b02880 commit 22f727c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Core/VideoBackends/D3D/Src/Render.cpp
Expand Up @@ -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(),
Expand Down

0 comments on commit 22f727c

Please sign in to comment.