DX11: Fixed screen shot.

This commit is contained in:
Branimir Karadžić 2014-12-02 20:28:14 -08:00
parent 3e4b82e7fe
commit a7290afc4f

View File

@ -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