mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-17 20:31:57 -05:00
DX11: Fixed screen shot.
This commit is contained in:
parent
3e4b82e7fe
commit
a7290afc4f
1 changed files with 6 additions and 0 deletions
|
@ -1072,6 +1072,12 @@ RENDERDOC_IMPORT
|
||||||
|
|
||||||
D3D11_MAPPED_SUBRESOURCE mapped;
|
D3D11_MAPPED_SUBRESOURCE mapped;
|
||||||
DX_CHECK(m_deviceCtx->Map(texture, 0, D3D11_MAP_READ, 0, &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
|
g_callback->screenShot(_filePath
|
||||||
, backBufferDesc.Width
|
, backBufferDesc.Width
|
||||||
, backBufferDesc.Height
|
, backBufferDesc.Height
|
||||||
|
|
Loading…
Reference in a new issue