Skip to content

fix(gles): Wayland EGL nativeDisplay=0 fallback to surfaceless (v0.29.12)#213

Merged
kolkov merged 1 commit into
mainfrom
fix/wayland-egl-nativedisplay-pr
Jun 8, 2026
Merged

fix(gles): Wayland EGL nativeDisplay=0 fallback to surfaceless (v0.29.12)#213
kolkov merged 1 commit into
mainfrom
fix/wayland-egl-nativedisplay-pr

Conversation

@kolkov

@kolkov kolkov commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Fix regression found by @lkmavi: GetEGLDisplay with nativeDisplay=0 on Wayland opened second wl_display connection → crash. Now falls back to surfaceless. CreateSurface Path A skips sharing surfaceless Instance context. Validated against Rust wgpu-hal egl.rs:905-968.

….12)

GetEGLDisplay with nativeDisplay=0 on Wayland tried PlatformWaylandKHR
with NULL display — EGL opened second wl_display connection, causing
'Proxy and queue point to different wl_displays' crash. Found by @lkmavi.

Fix: skip Wayland platform when nativeDisplay=0 (Instance init), fall
back to surfaceless. CreateSurface calls with real wl_display* later.
CreateSurface Path A skips sharing surfaceless Instance context.
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov kolkov merged commit 57c71c0 into main Jun 8, 2026
20 of 21 checks passed
@kolkov kolkov deleted the fix/wayland-egl-nativedisplay-pr branch June 8, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant