fixed a possible crash when changing -seo options when OpenGL not yet initialized

This commit is contained in:
Zeno Rogue 2023-02-18 19:16:21 +01:00
parent acdac858a3
commit f73660c801
1 changed files with 1 additions and 1 deletions

View File

@ -1292,7 +1292,7 @@ EX void invoke_embed(geom3::eSpatialEmbedding se) {
geom3::spatial_embedding = se;
if(geom3::auto_configure) geom3::switch_fpp(); else geom3::switch_always3();
delete_sky();
resetGL();
if(vid.usingGL) resetGL();
}
}