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;