gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 548 forks source link

GL backend fails on wayland #3671

Closed dlunch closed 3 years ago

dlunch commented 3 years ago

Short info header:

GL backend on wayland fails with following error log: WARN gfx_backend_gl::window::egl > Error in create_pbuffer_surface: BadMatch

It seems that pbuffer is not supported on wayland mesa driver(https://lists.freedesktop.org/archives/wayland-devel/2012-April/002928.html, https://bugs.freedesktop.org/show_bug.cgi?id=105995)

kvark commented 3 years ago

Thank you for filing! We aren't using PBuffer for anything useful. I imagine Wayland platforms support surface-less contexts, so we can just check for this and not create anything. cc @Gordon-F

kvark commented 3 years ago

Should be fixed by #3676