Hello there ![]()
I have a somewhat strange problem when trying to glfwInit a window on my CachyOS. I am getting:
Failed to load plugin ‘libdecor-gtk.so’: failed to init
with the description:
EGL: Failed to clear current context: An EGLDisplay argument does not name a valid EGL display connection
Now, the error is not actually my problem and can be fixed by providing the explicit platform hint X11 before calling glfwInit. What I find extremely strange is that my code keeps executing because the method does not return NULL as specified in the description.
In other words, my if here does not trigger:
windowHandle = glfwCreateWindow(widthInPixels, heightInPixels, windowIdentifier, isTrueWindow ? NULL : glfwGetPrimaryMonitor(), NULL);
if (windowHandle == NULL) throw new IllegalStateException("Unable to create GLFW-Window.");
Now, I am using LWJGL (the Java-thingy) and thus there is a native translation layer, but it seems unlikely to me that said layer would normally transfer values correctly except this particular error one.
Does someone have experience with this?
EDIT: Probably related to this.