mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 22:43:49 +00:00
Fix typo when mapping 3D texture - fetch right subresource. Refs #359
This commit is contained in:
1 parent
c0b3f39f06
commit
b79f170e24
1 file changed
+2
-2
@@ -1921,7 +1921,7 @@ bool WrappedID3D11Device::Serialise_InitialState(ResourceId resid, ID3D11DeviceC
|
||||
HRESULT hr = E_INVALIDARG;
|
||||
|
||||
if(stage)
|
||||
hr = m_pImmediateContext->GetReal()->Map(stage, 0, D3D11_MAP_READ, 0, &mapped);
|
||||
hr = m_pImmediateContext->GetReal()->Map(stage, sub, D3D11_MAP_READ, 0, &mapped);
|
||||
else
|
||||
RDCERR(
|
||||
"Didn't have stage resource for %llu when serialising initial state! "
|
||||
@@ -1965,7 +1965,7 @@ bool WrappedID3D11Device::Serialise_InitialState(ResourceId resid, ID3D11DeviceC
|
||||
m_pSerialiser->SerialiseBuffer("", inmemBuffer, len);
|
||||
|
||||
if(SUCCEEDED(hr))
|
||||
m_pImmediateContext->GetReal()->Unmap(stage, 0);
|
||||
m_pImmediateContext->GetReal()->Unmap(stage, sub);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user