- /* if we're in gamemode, call glutLeaveGameMode first to make sure the
- * gamemode is properly closed before closing the window
+ /* if we're in gamemode and we're closing the gamemode window,
+ * call glutLeaveGameMode first to make sure the gamemode is
+ * properly closed before closing the window