I have no idea why I used SDL_CreateWindowAndRenderer, that's only for applications using the SDL_Renderer, not opengl

This commit is contained in:
2025-08-15 23:47:39 -04:00
parent ff69218d50
commit c9056ce707
2 changed files with 2 additions and 5 deletions

View File

@@ -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);

View File

@@ -26,7 +26,6 @@
struct State
{
SDL_Window* window;
SDL_Renderer* renderer;
SDL_GLContext glContext;
Imgui imgui;
Dialog dialog;