From e976218e1786ad88622dc2e53ed3bfe2000ddc77 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 21 Sep 2022 20:33:45 +0000 Subject: [PATCH] [d3d9] Make GetDXVKDevice return a const Rc reference Avoids some useless reffing. --- src/d3d9/d3d9_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.h b/src/d3d9/d3d9_device.h index 1e3750e69bc..7b4a7c52ed9 100644 --- a/src/d3d9/d3d9_device.h +++ b/src/d3d9/d3d9_device.h @@ -670,7 +670,7 @@ namespace dxvk { HWND GetWindow(); - Rc GetDXVKDevice() { + const Rc& GetDXVKDevice() { return m_dxvkDevice; }