Switching to fullscreen = new GL context?

Hi,

In general, does switching to fullscreen in any OS mean that the current window has to be destroyed and a new fullscreen window has to be created?

If so, then the GL context is gone with switching to fullscreen! So what would be an effecient way to solve this problem? Can the context be detatched from the window context and reattached to the fullscreen window? The other way would be to reload all the stuff to GL, which doesn’t sound like a neat solution.

How is this handled usually?

No. Generally, the API provides means to switch between fullscreen mode and window mode without any need to destroy the window. It’s like that under Linux and I’m also pretty sure this is the same under W32. Check for examples on a good internet search engine.