[wpigui] Don't recursively render frames in size callback (#3743)

WindowSizeCallback can sometimes be called while doing a render. If this occurs, imgui asserts. Avoid this case.
This commit is contained in:
Thad House
2021-11-28 01:03:40 -08:00
committed by GitHub
parent ae208d2b17
commit 4ba80a3a8c
2 changed files with 6 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ struct Context : public SavedSettings {
std::string title;
int defaultWidth;
int defaultHeight;
bool isPlatformRendering{false};
GLFWwindow* window = nullptr;