JFrame glitch when using Canvas as Display.setParent

Started by nicomoskito, February 15, 2015, 20:23:55

Previous topic - Next topic

nicomoskito

Hi everyone,

I encountered this weird glitch that comes up when you set Canvas as the display's parent. In my program I have a jframe with a canvas on, then i set the canvas as the parent of the display and everything works fine (there's animation in the display and I can use the buttons on the Jframe).

Then when im done i destroy the display, go back to another jframe (main menu): that works fine. Then I reload the jframe from earlier with a new Display etc. When I destroy it again and go back to the main menu the window becomes all glitchy and displays wrong information (although the buttons are still there and work but are basically invisible).

Here are screenshots to explain:


broumbroum

I think you are having an issue which I fixed some time ago on my own fork of lwjgl. Its basically the same glitches I experienced before on OSX.

See if this pull request can help https://github.com/LWJGL/lwjgl/pull/101 . I've got my binaries, made on my own, on a personal Jenkins server which I can send you the URL by PM if you want to try it out.

Please let me know...