DX11: Fixed screen shot.
This commit is contained in:
Родитель
3e4b82e7fe
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче