Using OpenGL on Wintel platform, I'd like to add (better) multiple monitor support...
Is it good (better) practice to destroy & re-create my GL window when I am doing any of the following:
- switch from windowed to fullscreen (MonitorFromWindow)
- switch from fullscreen to window
- swith from fullscreen.monitor1 to fullscreen.monitor2 (EnumDisplayMonitors)
Destroying the GL window leads to destroying its DC & GLRC, and thus loosing all allocated GL resources...
The nehegl basecode does just that: KillGLWindow() / InitGLWindow() for each display dependent change (ToggleFullscreen in that case).
I can cope with a DX-like Initialize/Restore/Invalidate/Release resource scheme; but so far things seem to work just fine using the same window/dc/glrc all the way...
Any experience appreciated.