From c9056ce70794944899500937a3898db4bc9c79de Mon Sep 17 00:00:00 2001 From: shweet Date: Fri, 15 Aug 2025 23:47:39 -0400 Subject: [PATCH] I have no idea why I used SDL_CreateWindowAndRenderer, that's only for applications using the SDL_Renderer, not opengl --- src/state.cpp | 6 ++---- src/state.h | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/state.cpp b/src/state.cpp index f628db8..e25d158 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -60,14 +60,12 @@ void init(State* self) log_info(STATE_MIX_INIT_INFO); */ - SDL_CreateWindowAndRenderer + self->window = SDL_CreateWindow ( WINDOW_TITLE, self->settings.windowSize.x, self->settings.windowSize.y, - WINDOW_FLAGS, - &self->window, - &self->renderer + WINDOW_FLAGS ); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); diff --git a/src/state.h b/src/state.h index ff94666..2f702ab 100644 --- a/src/state.h +++ b/src/state.h @@ -26,7 +26,6 @@ struct State { SDL_Window* window; - SDL_Renderer* renderer; SDL_GLContext glContext; Imgui imgui; Dialog dialog;