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;