mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-13 20:27:10 +00:00
prevent losing Rug texture on open/close window
This commit is contained in:
@@ -600,6 +600,10 @@ EX void resetGL() {
|
|||||||
matched_programs.clear();
|
matched_programs.clear();
|
||||||
glhr::current_glprogram = nullptr;
|
glhr::current_glprogram = nullptr;
|
||||||
ray::reset_raycaster();
|
ray::reset_raycaster();
|
||||||
|
if(rug::rugged) {
|
||||||
|
rug::close();
|
||||||
|
rug::reopen();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user