[d3d11] Fix sampler state refcount issue

We cannot use strong references in state objects that
are stored inside a member of the device itself.
This commit is contained in:
Philip Rebohle 2018-03-18 14:57:14 +01:00
parent 2346a2ac03
commit e009e63aa7
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D11SamplerState::GetDevice(ID3D11Device** ppDevice) {
*ppDevice = m_device.ref();
*ppDevice = ref(m_device);
}

View File

@ -38,7 +38,7 @@ namespace dxvk {
private:
Com<D3D11Device> m_device;
D3D11Device* const m_device;
D3D11_SAMPLER_DESC m_desc;
Rc<DxvkSampler> m_sampler;