Add comment and remove unused include

This commit is contained in:
Abdelrahman Said 2024-09-10 00:25:25 +01:00
parent eef16a695e
commit 1c340b0be4

View File

@ -1,4 +1,3 @@
#include "SDL_rect.h"
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <SDL2/SDL_events.h> #include <SDL2/SDL_events.h>
#include <SDL2/SDL_opengl.h> #include <SDL2/SDL_opengl.h>
@ -133,6 +132,8 @@ int main(void) {
ImGui_ImplOpenGL3_RenderDrawData(igGetDrawData()); 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) { if (io->ConfigFlags & ImGuiConfigFlags_ViewportsEnable) {
SDL_Window *backup_current_window = SDL_GL_GetCurrentWindow(); SDL_Window *backup_current_window = SDL_GL_GetCurrentWindow();
SDL_GLContext backup_current_context = SDL_GL_GetCurrentContext(); SDL_GLContext backup_current_context = SDL_GL_GetCurrentContext();