OpenGL task switching

Started by
-1 comments, last by BlueGrass 21 years, 2 months ago
Hi. I need to know the proper way how to handle task switching under OpenGL in a fullscreen program. I''ve searched FlipCode and various other sites, but I haven''t been able to find a completely satisfactory answer. Here''s some specific questions: 1) Should you completely release the device context when switching focus? If not, should you at least make the rendering context not current? 2) Do you need to recreate textures and reset OpenGL states when you get the focus back? 3) I''m planning to handle the WM_ACTIVATE message to get task-switches/top-level-window changes. This is a fine way to do it right? 4) I''m currently using WS_EX_TOPMOST. I''ve noticed multilingual support in WinXP uses this little floating tool-box. Will it get covered up by my topmost window? I think that''s all. Any other recommendations are welcome.

This topic is closed to new replies.

Advertisement