In my OpenGL application I switch between windowed and fullscreen mode using Raymond Chen's solution:
http://blogs.msdn.com/b/oldnewthing/archive/2010/04/12/9994016.aspx
This works apart from two very annoying side effects when used in a multi-monitor setup (only):
- After the window mode was switched BOTH screens flicker/flash just in the moment glViewport is called to accommodate the changed window dimensions.
- Windows on the desktop from other applications are not painted correctly after the switch until I e.g. minimize/maximize them (or do something similar to force a refresh).
Does one know these effects and maybe also knows a solution?
ps: further tests showed that this only happens on my PC with an AMD card but not with my Nvidia card. If only one monitor is active it doesn't happen at all.