Halen84 / ImGuiRDR2Hook

A Vulkan & DirectX 12 hook that allows you to create ImGui menus for Red Dead Redemption 2
MIT License
9 stars 3 forks source link

Calling WaitAndRender() inside ImGui draw loop will crash #2

Open Halen84 opened 1 year ago

Halen84 commented 1 year ago

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.