summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Present.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2023-01-29 23:55:33 +1300
committerScott Mansell <phiren@gmail.com>2023-01-31 19:41:24 +1300
commit3c73707dfe8dfb99edab6b8f2b2847160abddaf5 (patch)
tree55a145fb86e34aef68f1d4b8a3f333ddb56d594c /Source/Core/VideoCommon/Present.cpp
parenteaae5b4a4541da9e747e79a174ab470c4ead00d6 (diff)
Fix dead code.
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
-rw-r--r--Source/Core/VideoCommon/Present.cpp3
1 files changed, 2 insertions, 1 deletions
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)