Fix bug where input is lost during resize

This commit fixes a bug causing all input to be lost. This gets triggered when either the console or server browser window is drawing while the user tabs out of the full-screen window, or resizes the game window.
This commit is contained in:
Kawe Mazidjatari 2022-12-22 17:49:38 +01:00
parent 6177c1ebe7
commit d9ac275d71

View File

@ -340,12 +340,13 @@ HRESULT __stdcall GetResizeBuffers(IDXGISwapChain* pSwapChain, UINT nBufferCount
{
g_pConsole->m_bActivate = false;
g_pBrowser->m_bActivate = false;
s_bInitialized = false;
s_bInitialized = false;
g_nWindowWidth = nWidth;
g_nWindowHeight = nHeight;
///////////////////////////////////////////////////////////////////////////////
ResetInput();
DestroyRenderTarget();
///////////////////////////////////////////////////////////////////////////////