From abdf530730c79a25033dae3a34868c87d007f0b8 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Thu, 23 Oct 2025 21:59:40 -0400 Subject: [PATCH] initialize sdl window,renderer and texture to something --- src/sdl/i_video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdl/i_video.cpp b/src/sdl/i_video.cpp index 92037d065..2f4d64db1 100644 --- a/src/sdl/i_video.cpp +++ b/src/sdl/i_video.cpp @@ -130,9 +130,9 @@ static SDL_bool borderlesswindow = SDL_FALSE; Uint16 realwidth = BASEVIDWIDTH; Uint16 realheight = BASEVIDHEIGHT; -SDL_Window *window; -SDL_Renderer *renderer; -static SDL_Texture *texture; +SDL_Window *window = NULL; +SDL_Renderer *renderer = NULL; +static SDL_Texture *texture = NULL; static SDL_bool havefocus = SDL_TRUE; static UINT32 refresh_rate;