I tried doing that, but setting gl_mode to 5 doesn't seem to fix anything other than setting the resolution to 800x480. The screen still blacks out whenever I change the resolution, switch between fullscreen and windowed mode, or start a new game. Perhaps you could copy and paste your config.cfg...