1
0
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:
Philip Rebohle 2018-09-16 19:11:15 +02:00
parent fde67b9773
commit a78dc3b444
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
namespace dxvk {
DxvkAdapter::DxvkAdapter(
const Rc<DxvkInstance>& instance,
DxvkInstance* instance,
VkPhysicalDevice handle)
: m_instance (instance),
m_vki (instance->vki()),

View File

@ -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;