delete airbuf on resetGL

This commit is contained in:
Zeno Rogue 2021-03-09 10:43:50 +01:00
parent 353af95596
commit c4ab8cca8b
1 changed files with 4 additions and 0 deletions

View File

@ -664,6 +664,10 @@ EX void resetGL() {
floor_textures = NULL;
}
#endif
if(airbuf) {
delete airbuf;
airbuf = nullptr;
}
check_cgi();
if(currentmap) cgi.require_shapes();
#if MAXMDIM >= 4