This issue is very similar to #1, but this issue only happens if WaitAndRender() is called anywhere inside the ImGui draw loop, like CMenu::Draw().
#
For example, calling WaitAndRender() in any function after ImGui::Button is pressed.
if (ImGui::Button("Button"))
{
// A crash will happen here if WaitAndRender() is called at any point inside this statement.
}
#
WaitAndRender() works perfectly fine if called inside the main script loop for example.
This issue is very similar to #1, but this issue only happens if
WaitAndRender()
is called anywhere inside the ImGui draw loop, likeCMenu::Draw()
. # For example, callingWaitAndRender()
in any function after ImGui::Button is pressed.#
WaitAndRender()
works perfectly fine if called inside the main script loop for example.