1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

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

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();
}
}