[d3d11] Fix confusing code in deferred context Map

This did work, but we shouldn't use an object that was already moved.
This commit is contained in:
Philip Rebohle 2022-02-06 18:18:21 +01:00
parent e4dbd1e337
commit 7cf78a2c75
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 5 additions and 5 deletions

View File

@ -205,15 +205,15 @@ namespace dxvk {
return status;
}
// Adding a new map entry actually overrides the
// old one in practice because the lookup function
// scans the array in reverse order
m_mappedResources.push_back(std::move(entry));
// Fill mapped resource structure
pMappedResource->pData = entry.MapPointer;
pMappedResource->RowPitch = entry.RowPitch;
pMappedResource->DepthPitch = entry.DepthPitch;
// Adding a new map entry actually overrides the
// old one in practice because the lookup function
// scans the array in reverse order
m_mappedResources.push_back(std::move(entry));
return S_OK;
} else if (MapType == D3D11_MAP_WRITE_NO_OVERWRITE) {
// The resource must be mapped with D3D11_MAP_WRITE_DISCARD