mirror of
https://github.com/hoornet/vega.git
synced 2026-04-24 06:40:01 -07:00
Fix blank window on Wayland (Hyprland) — disable WebKit DMA-BUF renderer
Sets WEBKIT_DISABLE_DMABUF_RENDERER=1 on Linux before Tauri initialises. Prevents EGL_BAD_PARAMETER crash in WebKit's GPU process on compositors like Hyprland that don't expose the required EGL display extensions. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,5 +2,10 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
// Disable WebKit DMA-BUF renderer which causes blank windows on some
|
||||
// Wayland compositors (Hyprland, etc.) due to EGL_BAD_PARAMETER errors.
|
||||
#[cfg(target_os = "linux")]
|
||||
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
|
||||
|
||||
wrystr_lib::run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user