mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
- 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:
parent
d246ff1212
commit
768a75b712
2 changed files with 1 additions and 7 deletions
|
@ -8100,7 +8100,6 @@ int32_t enginePreInit(void)
|
||||||
{
|
{
|
||||||
baselayer_init();
|
baselayer_init();
|
||||||
initdivtables();
|
initdivtables();
|
||||||
if (initsystem()) Bexit(9);
|
|
||||||
|
|
||||||
#if !defined DEBUG_MAIN_ARRAYS
|
#if !defined DEBUG_MAIN_ARRAYS
|
||||||
sector = sector_s;
|
sector = sector_s;
|
||||||
|
@ -8114,12 +8113,6 @@ int32_t enginePreInit(void)
|
||||||
spritesmooth = spritesmooth_s;
|
spritesmooth = spritesmooth_s;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined ENGINE_USING_A_C
|
|
||||||
mmxoverlay();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
validmodecnt = 0;
|
|
||||||
videoGetModes();
|
|
||||||
|
|
||||||
initcrc32table();
|
initcrc32table();
|
||||||
|
|
||||||
|
|
|
@ -449,6 +449,7 @@ int main(int argc, char *argv[])
|
||||||
gtkbuild_init(&argc, &argv);
|
gtkbuild_init(&argc, &argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (initsystem()) Bexit(9);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue