Fix dead code.

This commit is contained in:
Scott Mansell committed 2023-01-31 19:41:24 +13:00
1 parent eaae5b4a45
commit 3c73707dfe
1 file changed
+2 -1
+2 -1
View File
@@ -214,8 +214,9 @@ void Presenter::ResizeSurface()
void* Presenter::GetNewSurfaceHandle() void* Presenter::GetNewSurfaceHandle()
{ {
return m_new_surface_handle; void *handle = m_new_surface_handle;
m_new_surface_handle = nullptr; m_new_surface_handle = nullptr;
return handle;
} }
void Presenter::SetWindowSize(int width, int height) void Presenter::SetWindowSize(int width, int height)