1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-16 21:57:15 +00:00

clear shaders on resetGL

This commit is contained in:
Zeno Rogue
2019-10-26 17:02:20 +02:00
parent 2645eae237
commit 68c7514c2c
3 changed files with 7 additions and 3 deletions

View File

@@ -596,6 +596,10 @@ EX void resetGL() {
if(GDIM == 3 && !floor_textures) make_floor_textures();
#endif
cgi.initPolyForGL();
compiled_programs.clear();
matched_programs.clear();
glhr::current_glprogram = nullptr;
ray::reset_raycaster();
}
#endif