From 1e07644c43a91d373ba362eba71238ec553e80dc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 29 May 2019 21:29:31 +0200 Subject: [PATCH] fixed cgi possibly generated incorrectly (especially in dual) --- basegraph.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basegraph.cpp b/basegraph.cpp index 9cfa0b26..2f358e92 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -693,6 +693,7 @@ void resetGL() { floor_textures = NULL; } #endif + check_cgi(); cgi.require_shapes(); if(DIM == 3 && !floor_textures) make_floor_textures(); cgi.initPolyForGL(); @@ -1242,7 +1243,8 @@ void initgraph() { #if CAP_COMMANDLINE arg::read(2); #endif - cgi.prepare_basics(); + check_cgi(); + cgi.require_basics(); #if CAP_SDL setvideomode();