- fixed video startup.

Make sure that SDL is initialized as the first thing and that the validmodecnt variable does not get cleared
This commit is contained in:
Christoph Oelckers 2019-11-02 17:26:40 +01:00
parent d246ff1212
commit 768a75b712
2 changed files with 1 additions and 7 deletions

View file

@ -8100,7 +8100,6 @@ int32_t enginePreInit(void)
{
baselayer_init();
initdivtables();
if (initsystem()) Bexit(9);
#if !defined DEBUG_MAIN_ARRAYS
sector = sector_s;
@ -8114,12 +8113,6 @@ int32_t enginePreInit(void)
spritesmooth = spritesmooth_s;
#endif
#if !defined ENGINE_USING_A_C
mmxoverlay();
#endif
validmodecnt = 0;
videoGetModes();
initcrc32table();

View file

@ -449,6 +449,7 @@ int main(int argc, char *argv[])
gtkbuild_init(&argc, &argv);
#endif
if (initsystem()) Bexit(9);
try
{