mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[dxvk] Fix potential sparse allocator lifetime issues
This commit is contained in:
parent
c3c6dbf669
commit
7b4925dc45
@ -217,7 +217,7 @@ namespace dxvk {
|
||||
|
||||
|
||||
Rc<DxvkSparsePageAllocator> DxvkDevice::createSparsePageAllocator() {
|
||||
return new DxvkSparsePageAllocator(this, m_objects.memoryManager());
|
||||
return new DxvkSparsePageAllocator(m_objects.memoryManager());
|
||||
}
|
||||
|
||||
|
||||
|
@ -79,9 +79,8 @@ namespace dxvk {
|
||||
|
||||
|
||||
DxvkSparsePageAllocator::DxvkSparsePageAllocator(
|
||||
DxvkDevice* device,
|
||||
DxvkMemoryAllocator& memoryAllocator)
|
||||
: m_device(device), m_memory(&memoryAllocator) {
|
||||
: m_memory(&memoryAllocator) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -271,7 +271,6 @@ namespace dxvk {
|
||||
public:
|
||||
|
||||
DxvkSparsePageAllocator(
|
||||
DxvkDevice* device,
|
||||
DxvkMemoryAllocator& memoryAllocator);
|
||||
|
||||
~DxvkSparsePageAllocator();
|
||||
@ -300,7 +299,6 @@ namespace dxvk {
|
||||
|
||||
private:
|
||||
|
||||
DxvkDevice* m_device;
|
||||
DxvkMemoryAllocator* m_memory;
|
||||
|
||||
dxvk::mutex m_mutex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user