I'm working on a game at the moment which allows the player to select between different resolutions. To change resolution, the Window is closed and re-initialized with the new resolution as would be expected.
It begins correctly, but 5 seconds in it starts to flicker to black very quickly, and stops drawing new frames. It does keep updating, however, and I can hear the game changing scenes when clicking around randomly.
I saw someone else post about this looking around, but I didn't find out how it can be fixed.Youtube Video
Anyone have any idea how to fix this? I don't want to ask the player to restart it themselves, or make a separate launcher.