1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-13 06:22:39 +00:00

fixed a potential crash on resetGL

This commit is contained in:
Zeno Rogue
2025-08-23 22:40:13 +02:00
parent dae3a00b67
commit bb3c80fb79
2 changed files with 28 additions and 18 deletions

View File

@@ -776,9 +776,12 @@ EX void resetGL() {
airbuf = nullptr;
}
#endif
compiled_programs.clear();
matched_programs.clear();
glhr::current_glprogram = nullptr;
glhr::flags_become(0);
check_cgi();
if(currentmap) cgi.require_shapes();
cgi.initPolyForGL();