|
@@ -87,6 +87,8 @@ int main(int, char**)
|
|
ImGui_ImplSDL2_ProcessEvent(&event);
|
|
ImGui_ImplSDL2_ProcessEvent(&event);
|
|
if (event.type == SDL_QUIT)
|
|
if (event.type == SDL_QUIT)
|
|
done = true;
|
|
done = true;
|
|
|
|
+ if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window))
|
|
|
|
+ done = true;
|
|
}
|
|
}
|
|
|
|
|
|
// Start the Dear ImGui frame
|
|
// Start the Dear ImGui frame
|