DX11: Fixed screen shot.
This commit is contained in:
parent
3e4b82e7fe
commit
a7290afc4f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user