-
Notifications
You must be signed in to change notification settings - Fork 25
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
org.lwjgl.opengl.awt.AWTTest fails on XWayland #84
Comments
Hi @wolfseifert In version 3.3.4+ of lwjgl3 something curious happens, when it detects wayland it automatically loads EGL and not GLX (this is fine since waylandan is not compatible with GLX unless we use XWaylando as a bridge which is great), this configuration is active by default, but we can force lwjgl3 to use the X11 API as follows (a little trick). Before any call to GL, you must configure which backend to use: Configuration.OPENGL_CONTEXT_API.set("native"); |
Thanks, it works now on XWayland, X11 and Windows. Here is the updated test.zip. I see this as a workaround, not a fix and therefore keep the issue open. |
There is a possible solution for this (I opened a PR to solve this problem without having to configure the backend manually). |
org.lwjgl.opengl.awt.AWTTest fails at runtime on XWayland, it works on X11 and Windows. It used to work on XWayland for older versions (see attached build.gradle.kts).
Steps to reproduce:
The window shows up, but is empty.
The text was updated successfully, but these errors were encountered: