PDA

View Full Version : Changing Screen Resolution - Opinions



Andrew Jameson
12-21-2003, 10:44 PM
In our application, we have arranged it such that the user can change screen resolution from within the program. We don't destroy and recreate the OpenGL drawing canvas ... and it appears to work without any problems on a range of systems/cards.

I've heard from others that this might cause problems and that I should reinitialize the OpenGL canvas ...

What is considered best practice when changing resolution ?

Thanks

Andrew

PanzerSchreck
12-22-2003, 12:47 AM
As far as I'm aware you may get problems with the way you do it, if the user not only changes the resolution but also switches to another colordepth. So I'd just test if the new resolution has a different colordepth, and if that's the case I would recreate the RC and reload all needed stuff. This way you're on the safer side and it may avoid problems especially on non-NVidia/ATI-cards.