From d5cd8e699b47f0eded5c0a2de4b5a60ab8df63ad Mon Sep 17 00:00:00 2001 From: Nukem Date: Thu, 9 Jan 2025 21:11:13 -0500 Subject: [PATCH] d3d11: Fix DXGI device ref count leak --- Common/GPU/D3D11/thin3d_d3d11.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/GPU/D3D11/thin3d_d3d11.cpp b/Common/GPU/D3D11/thin3d_d3d11.cpp index cd42458df5..beaaa8e1c4 100644 --- a/Common/GPU/D3D11/thin3d_d3d11.cpp +++ b/Common/GPU/D3D11/thin3d_d3d11.cpp @@ -405,6 +405,7 @@ D3D11DrawContext::D3D11DrawContext(ID3D11Device *device, ID3D11DeviceContext *de if (SUCCEEDED(hr)) { caps_.setMaxFrameLatencySupported = true; dxgiDevice1->SetMaximumFrameLatency(maxInflightFrames); + dxgiDevice1->Release(); } }