mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[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:
@@ -37,6 +37,7 @@ struct Context : public SavedSettings {
|
||||
std::string title;
|
||||
int defaultWidth;
|
||||
int defaultHeight;
|
||||
bool isPlatformRendering{false};
|
||||
|
||||
GLFWwindow* window = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user