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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user