mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 19:24:12 +01:00
[d3d11] Fixed severe reference-counting issue in state objects
This commit is contained in:
parent
3d6e88428a
commit
9a86178604
@ -50,7 +50,7 @@ namespace dxvk {
|
||||
|
||||
Com<T> result = new T(device, desc);
|
||||
m_objects.insert({ desc, result });
|
||||
return result.ptr();
|
||||
return result.ref();
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -78,7 +78,7 @@ namespace dxvk {
|
||||
|
||||
|
||||
void D3D11RasterizerState::GetDevice(ID3D11Device** ppDevice) {
|
||||
*ppDevice = m_device.ref();
|
||||
*ppDevice = m_device;
|
||||
}
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace dxvk {
|
||||
|
||||
private:
|
||||
|
||||
Com<D3D11Device> m_device;
|
||||
D3D11Device* const m_device;
|
||||
D3D11_RASTERIZER_DESC m_desc;
|
||||
DxvkRasterizerState m_state;
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
return S_OK; \
|
||||
} \
|
||||
} while (0)
|
||||
#include <iostream>
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
template<typename... Base>
|
||||
|
Loading…
Reference in New Issue
Block a user