From a7290afc4f8672016954e78e2cd2da6d5ba34724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 2 Dec 2014 20:28:14 -0800 Subject: [PATCH] DX11: Fixed screen shot. --- src/renderer_d3d11.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 22b18694..7f66fc14 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -1072,6 +1072,12 @@ RENDERDOC_IMPORT D3D11_MAPPED_SUBRESOURCE mapped; DX_CHECK(m_deviceCtx->Map(texture, 0, D3D11_MAP_READ, 0, &mapped) ); + imageSwizzleBgra8(backBufferDesc.Width + , backBufferDesc.Height + , mapped.RowPitch + , mapped.pData + , mapped.pData + ); g_callback->screenShot(_filePath , backBufferDesc.Width , backBufferDesc.Height