mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-29 17:52:18 +01:00
[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:
parent
2346a2ac03
commit
e009e63aa7
@ -64,7 +64,7 @@ namespace dxvk {
|
||||
|
||||
|
||||
void STDMETHODCALLTYPE D3D11SamplerState::GetDevice(ID3D11Device** ppDevice) {
|
||||
*ppDevice = m_device.ref();
|
||||
*ppDevice = ref(m_device);
|
||||
}
|
||||
|
||||
|
||||
|
@ -38,7 +38,7 @@ namespace dxvk {
|
||||
|
||||
private:
|
||||
|
||||
Com<D3D11Device> m_device;
|
||||
D3D11Device* const m_device;
|
||||
D3D11_SAMPLER_DESC m_desc;
|
||||
Rc<DxvkSampler> m_sampler;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user