mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
delete textures, saner resetGL calling rule?
This commit is contained in:
parent
38559b304b
commit
608692b6df
@ -654,8 +654,12 @@ void resetGL() {
|
|||||||
delete glfont[i];
|
delete glfont[i];
|
||||||
glfont[i] = NULL;
|
glfont[i] = NULL;
|
||||||
}
|
}
|
||||||
|
if(floor_textures) {
|
||||||
|
delete floor_textures;
|
||||||
|
floor_textures = NULL;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
buildpolys();
|
resetGeometry(); // includes buildPoly
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -6479,9 +6479,7 @@ void resetGeometry() {
|
|||||||
#if CAP_FIELD
|
#if CAP_FIELD
|
||||||
if(hyperbolic && &currfp != &fieldpattern::fp_invalid) currfp.analyze();
|
if(hyperbolic && &currfp != &fieldpattern::fp_invalid) currfp.analyze();
|
||||||
#endif
|
#endif
|
||||||
#if CAP_GL
|
buildpolys();
|
||||||
resetGL();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=== animation
|
//=== animation
|
||||||
|
Loading…
Reference in New Issue
Block a user