From 3c73707dfe8dfb99edab6b8f2b2847160abddaf5 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sun, 29 Jan 2023 23:55:33 +1300 Subject: [PATCH] Fix dead code. --- Source/Core/VideoCommon/Present.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp index 25d79f47ff..159fe080af 100644 --- a/Source/Core/VideoCommon/Present.cpp +++ b/Source/Core/VideoCommon/Present.cpp @@ -214,8 +214,9 @@ void Presenter::ResizeSurface() void* Presenter::GetNewSurfaceHandle() { - return m_new_surface_handle; + void *handle = m_new_surface_handle; m_new_surface_handle = nullptr; + return handle; } void Presenter::SetWindowSize(int width, int height)