mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[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:
parent
e4dbd1e337
commit
7cf78a2c75
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user