mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
ImguiSystem: don't run the message handler if the system isn't initialized
ImGui_ImplWin32_WndProcHandler will return out early anyways if Dear Imgui itself isn't initialized, there is therefore no need to lock any mutex here when the system isn't initialized. Return out early.
This commit is contained in:
parent
a331d43488
commit
fa949c8e6a
@ -163,6 +163,9 @@ void CImguiSystem::RenderFrame()
|
||||
//-----------------------------------------------------------------------------
|
||||
LRESULT CImguiSystem::MessageHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
if (ImguiSystem()->m_systemInitState == ImguiSystemInitStage_e::IM_PENDING_INIT)
|
||||
return NULL;
|
||||
|
||||
AUTO_LOCK(ImguiSystem()->m_inputEventQueueMutex);
|
||||
|
||||
extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||
|
Loading…
x
Reference in New Issue
Block a user