1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 10:54:16 +01:00

[d3d11] Hold reference to DxvkInstance

Hack to keep the instance alive which owns the adapters. Should
fix #1240 for now, but we should fix this properly later on.
This commit is contained in:
Philip Rebohle 2019-11-07 20:21:27 +01:00
parent b18c50d5ab
commit a0dba6bbf9
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 2 additions and 0 deletions

View File

@ -2464,6 +2464,7 @@ namespace dxvk {
D3D_FEATURE_LEVEL FeatureLevel,
UINT FeatureFlags)
: m_dxgiAdapter (pAdapter),
m_dxvkInstance (pDxvkAdapter->instance()),
m_dxvkAdapter (pDxvkAdapter),
m_dxvkDevice (CreateDevice(FeatureLevel)),
m_d3d11Device (this, FeatureLevel, FeatureFlags),

View File

@ -641,6 +641,7 @@ namespace dxvk {
Com<IDXGIAdapter> m_dxgiAdapter;
Rc<DxvkInstance> m_dxvkInstance;
Rc<DxvkAdapter> m_dxvkAdapter;
Rc<DxvkDevice> m_dxvkDevice;