mirror of
https://github.com/AventurasTeam/Aventuras.git
synced 2026-04-28 03:40:11 +00:00
Update src-tauri/src/main.rs
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
f7ffdb65b9
commit
7f63700352
1 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,8 @@
|
|||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
// Fix for "Failed to create GBM buffer" error on some Linux environments
|
||||
// Workaround for "Failed to create GBM buffer" on Linux (e.g. Wayland/NVIDIA).
|
||||
// This disables the DMA-BUF renderer, forcing a more compatible fallback.
|
||||
#[cfg(target_os = "linux")]
|
||||
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue