I've recently swapped my dedicated GPU from Nvidia one to Radeon. Since then, all linux-native games I've added to Heroic Launcher (I use appimage version), be it flatpak or other appimages, use integrated GPU (no such problems running exactly the same executables in Lutris or even directly). I've managed to find out that logs mention some outdated env variables (that I don't remember setting anywhere anyway) that point to wrong GPU (using DRI_PRIME) and wrong driver and vendor.
How does HGL decide what environment to use (those variables are empty when I check in terminal) and most importantly, how do I remove those envs?