From bf9ac641831f0382f9d9b92f7e98a234af5e5250 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 11 Aug 2020 03:48:24 +1000 Subject: [PATCH] GPU/D3D11: Don't leak input layout objects --- src/core/gpu_hw_d3d11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw_d3d11.cpp b/src/core/gpu_hw_d3d11.cpp index adf4489f7..84ac69b56 100644 --- a/src/core/gpu_hw_d3d11.cpp +++ b/src/core/gpu_hw_d3d11.cpp @@ -364,7 +364,7 @@ bool GPU_HW_D3D11::CompileShaders() const HRESULT hr = m_device->CreateInputLayout(attributes.data(), static_cast(attributes.size()), vs_bytecode->GetBufferPointer(), vs_bytecode->GetBufferSize(), - m_batch_input_layout.GetAddressOf()); + m_batch_input_layout.ReleaseAndGetAddressOf()); if (FAILED(hr)) { Log_ErrorPrintf("CreateInputLayout failed: 0x%08X", hr);