Stop application and reload to change display mode

Started by amoeba, August 22, 2007, 11:53:22

Previous topic - Next topic

amoeba

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?

Matzon

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.

amoeba

Because it seems to have a texture problem when I do this.

princec

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 :)