From 1c340b0be438bc55424913a39f4f80cc96ce8a20 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Tue, 10 Sep 2024 00:25:25 +0100 Subject: [PATCH] Add comment and remove unused include --- src/sdl2-opengl3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdl2-opengl3.c b/src/sdl2-opengl3.c index c2275c8..06d9072 100644 --- a/src/sdl2-opengl3.c +++ b/src/sdl2-opengl3.c @@ -1,4 +1,3 @@ -#include "SDL_rect.h" #include #include #include @@ -133,6 +132,8 @@ int main(void) { ImGui_ImplOpenGL3_RenderDrawData(igGetDrawData()); + // TODO (abdelrahman): This seems to be the way to break ImGui windows from + // the main SDL window. Figure out why if (io->ConfigFlags & ImGuiConfigFlags_ViewportsEnable) { SDL_Window *backup_current_window = SDL_GL_GetCurrentWindow(); SDL_GLContext backup_current_context = SDL_GL_GetCurrentContext();