Fix dead code.

This commit is contained in:
Scott Mansell 2023-01-29 23:55:33 +13:00
parent eaae5b4a45
commit 3c73707dfe
1 changed files with 2 additions and 1 deletions

View File

@ -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)