window icon should be set after window creation in SDL2.

This commit is contained in:
Ozkan Sezer 2021-08-29 17:04:40 +03:00
parent 85683a04c9
commit 2313298d14

View file

@ -1726,11 +1726,18 @@ void VID_Init (void)
vid.colormap = host_colormap; vid.colormap = host_colormap;
vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048)); vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048));
#if !defined(USE_SDL2)
// set window icon // set window icon
PL_SetWindowIcon(); PL_SetWindowIcon();
#endif
VID_SetMode (width, height, refreshrate, bpp, fullscreen); VID_SetMode (width, height, refreshrate, bpp, fullscreen);
#if defined(USE_SDL2)
// set window icon
PL_SetWindowIcon();
#endif
GL_Init (); GL_Init ();
GL_SetupState (); GL_SetupState ();
Cmd_AddCommand ("gl_info", GL_Info_f); //johnfitz Cmd_AddCommand ("gl_info", GL_Info_f); //johnfitz