-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LWJGLException when switching from full-screen to windowed context #798
Comments
Hi, I did the test with the code but I do not have this problem. The program continues to function without getting stuck. I'm using JME 3.2 |
If you haven't already, try launching in full-screen mode and then pressing the "P" key. |
After further investigation, it seems that the exception isn't raised unless the initial display mode has a color depth of 16 bits per pixel. If the initial mode has a color depth of 32 bits per pixel, the switch to windowed mode goes smoothly. |
This problem may be related to your issue: |
Well the os is useing 32bit for framebuffers in the window manager, maybe it is an invalid call to create a window with 16bit (and lwjgl will do just that)? |
This does seem connected to issue #801. But in 801, there's no exception raised. |
Need to re-test with both LWJGL v2 and v3. |
Still seeing this issue with LWJGL v2 but not with v3. With my improved understanding of LWJGL, I suspect this issue is fixable. |
I'm still seeing this issue with JME 3.6.0-stable (LWJGL v2.9.5). |
I can not reproduce this. Tried with 3.6.0-stable. Edit:
In my case the only available color depth is 24 bpp when fullscreen is selected. Edit2: I noticed if I change
to
I get this exception when switching from full-screen:
and if I change it to
it shows a blank window after switching. (no spatial is rendered in the viewport) Maybe changing color depth is not supported with context restart. |
I made a commit to the master branch that may fix this issue, please re-test this from the master. Feel free to reopen it if you still have the issue. |
If I start a JME application in windowed mode, I can switch to full-screen mode at any time, provided my settings match one of those supported by my graphic adapter.
However, if I start in full-screen mode, any attempt to switch to windowed mode crashes the application.
I see this issue with both JME 3.1.0-stable and JME 3.2.0-stable
Here is my test app:
Here is typical output:
The text was updated successfully, but these errors were encountered: