[lwjgl] Changing an undecorated window to decorated without destroying

Hello!

I wanted to make a simple loading splash screen, so I used this system parameter:

System.setProperty("org.lwjgl.opengl.Window.undecorated", "true");

to have an undecorated window which displays a loading image.

However, the only way I can think of changing the window back to having a decoration, is to destroy and re-create it. The problem with this, is that destroying a display removes all the currently loaded textures, making the whole load screen pointless.

Any thoughts?