LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: amoeba on August 22, 2007, 11:53:22

Title: Stop application and reload to change display mode
Post by: amoeba on August 22, 2007, 11:53:22
Is this the easiest way to change display mode with LWJGL?

- write new display mode to an ini file
- close
- reload (reading ini file)

If so, does anyone have code to do the stop+reload part?
Title: Re: Stop application and reload to change display mode
Post by: Matzon on August 22, 2007, 12:11:53
why not just set the new display mode?
- it's somewhat unstable in some drivers, so a Display destroy/create cycle may be more stable.
Title: Re: Stop application and reload to change display mode
Post by: amoeba on August 29, 2007, 09:33:19
Because it seems to have a texture problem when I do this.
Title: Re: Stop application and reload to change display mode
Post by: princec on August 29, 2007, 11:44:24
You don't need to destroy the application completely to change the display mode like this - a Display.destroy() followed by create() will do the job just fine. If you experience texture corruption after this you genuinely have got duff drivers.

Cas :)