mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +01:00
[d3d11] Use private references for render targets
Matches Windows behaviour and fixes a crash in Yakuza Kiwami 2, which calls Release() on RTVs and DSVs until the public reference count reaches zero. Close #1053.
This commit is contained in:
parent
61b97e5dd1
commit
8784ed673b
@ -118,8 +118,8 @@ namespace dxvk {
|
||||
|
||||
|
||||
struct D3D11ContextStateOM {
|
||||
std::array<Com<D3D11RenderTargetView>, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT> renderTargetViews;
|
||||
Com<D3D11DepthStencilView> depthStencilView;
|
||||
std::array<Com<D3D11RenderTargetView, false>, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT> renderTargetViews;
|
||||
Com<D3D11DepthStencilView, false> depthStencilView;
|
||||
|
||||
Com<D3D11BlendState> cbState = nullptr;
|
||||
Com<D3D11DepthStencilState> dsState = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user