Fix typo when mapping 3D texture - fetch right subresource. Refs #359

This commit is contained in:
baldurk committed 2016-09-17 09:17:24 +02:00
1 parent c0b3f39f06
commit b79f170e24
1 file changed
+2 -2
+2 -2
View File
@@ -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
{