diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c index 22e70178d2..166ce52d05 100644 --- a/code/sdl/sdl_glimp.c +++ b/code/sdl/sdl_glimp.c @@ -207,6 +207,7 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder) if ( r_allowResize->integer ) flags |= SDL_WINDOW_RESIZABLE; +#ifdef USE_ICON icon = SDL_CreateRGBSurfaceFrom( (void *)CLIENT_WINDOW_ICON.pixel_data, CLIENT_WINDOW_ICON.width, @@ -219,6 +220,7 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder) 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF #endif ); +#endif // If a window exists, note its display index if( SDL_window != NULL )