1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

delete textures, saner resetGL calling rule?

This commit is contained in:
Zeno Rogue 2019-03-16 22:49:12 +01:00
parent 38559b304b
commit 608692b6df
2 changed files with 6 additions and 4 deletions

View File

@ -654,8 +654,12 @@ void resetGL() {
delete glfont[i];
glfont[i] = NULL;
}
if(floor_textures) {
delete floor_textures;
floor_textures = NULL;
}
#endif
buildpolys();
resetGeometry(); // includes buildPoly
}
#endif

View File

@ -6479,9 +6479,7 @@ void resetGeometry() {
#if CAP_FIELD
if(hyperbolic && &currfp != &fieldpattern::fp_invalid) currfp.analyze();
#endif
#if CAP_GL
resetGL();
#endif
buildpolys();
}
//=== animation