1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-05 11:12:49 +00:00

fixed the order of operations in resetGL

This commit is contained in:
Zeno Rogue 2025-06-25 00:25:35 +02:00
parent 48876ad63d
commit 2a2f3a5c4f

View File

@ -776,15 +776,15 @@ EX void resetGL() {
airbuf = nullptr;
}
#endif
check_cgi();
if(currentmap) cgi.require_shapes();
#if MAXMDIM >= 4
if(GDIM == 3 && !floor_textures) make_floor_textures();
#endif
cgi.initPolyForGL();
compiled_programs.clear();
matched_programs.clear();
glhr::current_glprogram = nullptr;
check_cgi();
if(currentmap) cgi.require_shapes();
cgi.initPolyForGL();
#if MAXMDIM >= 4
if(GDIM == 3 && !floor_textures) make_floor_textures();
#endif
ray::reset_raycaster();
#if CAP_RUG
if(rug::glbuf) rug::close_glbuf();