force shader re-creation

This commit is contained in:
still-flow 2020-10-15 00:16:31 +03:00
parent c4f105e148
commit 9f2f1ba536
1 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,8 @@ Java_com_roguetemple_hyperroid_HyperRogue_glhrinit(MOBPAR_FORMAL)
{
__android_log_print(ANDROID_LOG_WARN, "HyperRogue", "glhr::init %d\n", 0);
#if HNEW
// matched_programs get clobbered on activity destruction -- force their re-creation
if (!matched_programs.empty()) matched_programs.clear();
glhr::init();
#endif
__android_log_print(ANDROID_LOG_WARN, "HyperRogue", "glhr::init done %d\n", 0);