1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-14 09:26:52 +00:00

force shader re-creation

This commit is contained in:
still-flow 2020-10-15 00:16:31 +03:00
parent c4f105e148
commit 9f2f1ba536

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);