From 8784ed673bd1e45125af8ab05412776402767bd5 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 14 May 2019 15:17:42 +0200 Subject: [PATCH] [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. --- src/d3d11/d3d11_context_state.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d11/d3d11_context_state.h b/src/d3d11/d3d11_context_state.h index f9e929f0..03ba842f 100644 --- a/src/d3d11/d3d11_context_state.h +++ b/src/d3d11/d3d11_context_state.h @@ -118,8 +118,8 @@ namespace dxvk { struct D3D11ContextStateOM { - std::array, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT> renderTargetViews; - Com depthStencilView; + std::array, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT> renderTargetViews; + Com depthStencilView; Com cbState = nullptr; Com dsState = nullptr;