mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Do not store a strong reference from adapter to instance
The instance stores an array of adapters now. Fixes crash when using the device filter, and fixes the instance not getting destroyed.
This commit is contained in:
parent
fde67b9773
commit
a78dc3b444
@ -8,7 +8,7 @@
|
||||
namespace dxvk {
|
||||
|
||||
DxvkAdapter::DxvkAdapter(
|
||||
const Rc<DxvkInstance>& instance,
|
||||
DxvkInstance* instance,
|
||||
VkPhysicalDevice handle)
|
||||
: m_instance (instance),
|
||||
m_vki (instance->vki()),
|
||||
|
@ -32,7 +32,7 @@ namespace dxvk {
|
||||
public:
|
||||
|
||||
DxvkAdapter(
|
||||
const Rc<DxvkInstance>& instance,
|
||||
DxvkInstance* instance,
|
||||
VkPhysicalDevice handle);
|
||||
~DxvkAdapter();
|
||||
|
||||
@ -180,7 +180,7 @@ namespace dxvk {
|
||||
|
||||
private:
|
||||
|
||||
Rc<DxvkInstance> m_instance;
|
||||
DxvkInstance* m_instance;
|
||||
Rc<vk::InstanceFn> m_vki;
|
||||
VkPhysicalDevice m_handle;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user