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
1 changed files with 7 additions and 0 deletions

View File

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