fixed cgi possibly generated incorrectly (especially in dual)

This commit is contained in:
Zeno Rogue 2019-05-29 21:29:31 +02:00
parent c820f9a2f0
commit 1e07644c43
1 changed files with 3 additions and 1 deletions

View File

@ -693,6 +693,7 @@ void resetGL() {
floor_textures = NULL; floor_textures = NULL;
} }
#endif #endif
check_cgi();
cgi.require_shapes(); cgi.require_shapes();
if(DIM == 3 && !floor_textures) make_floor_textures(); if(DIM == 3 && !floor_textures) make_floor_textures();
cgi.initPolyForGL(); cgi.initPolyForGL();
@ -1242,7 +1243,8 @@ void initgraph() {
#if CAP_COMMANDLINE #if CAP_COMMANDLINE
arg::read(2); arg::read(2);
#endif #endif
cgi.prepare_basics(); check_cgi();
cgi.require_basics();
#if CAP_SDL #if CAP_SDL
setvideomode(); setvideomode();