From 80f88c7c0223e1773192c4cf66a276cc5a9b9e62 Mon Sep 17 00:00:00 2001 From: cypress Date: Tue, 14 Nov 2023 17:04:33 -0500 Subject: [PATCH] NX: Fix SDL Window Initialization --- source/gl_vidsdl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/gl_vidsdl.c b/source/gl_vidsdl.c index 89b58e3..6411ca3 100644 --- a/source/gl_vidsdl.c +++ b/source/gl_vidsdl.c @@ -82,7 +82,11 @@ static int nummodes; static qboolean vid_initialized = false; #if defined(USE_SDL2) +#ifndef __SWITCH__ static SDL_Window *draw_context; +#else +extern SDL_Window *draw_context; +#endif static SDL_GLContext gl_context; #else static SDL_Surface *draw_context;