dotnet / Silk.NET

The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
https://dotnet.github.io/Silk.NET
MIT License
3.89k stars 378 forks source link

GlfwNativeWindow: Allow wayland window ptr to be read when GLFW is compiled with both X11 and Wayland #2156

Closed Beyley closed 2 months ago

Beyley commented 2 months ago

Summary of the PR

Currently if wayland is used we say its X11 with no window or display ptr

uwx commented 2 months ago

Nitpick: Methinks you should actually check the error code for GLFW_PLATFORM_UNAVAILABLE instead of just relying on the only possible errors being a sign that X11 is not to be used.

Besides that LGTM