mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
2edee31638
On some Linux systems with AMD GPUs (e.g., AMD Cezanne/Radeon Vega), WebKitGTK's GPU process fails to initialize EGL, causing the app to show a white screen on startup. Root cause: `amdgpu_query_info(ACCEL_WORKING)` returns EACCES (-13), which causes EGL display creation to fail with EGL_BAD_PARAMETER, crashing the GPU process. Fix: Use WebKitGTK's `set_hardware_acceleration_policy(Never)` API to disable GPU acceleration on Linux, falling back to software rendering. This is applied at startup via Tauri's `with_webview` API. Co-authored-by: Naozhong AI <oursnoah@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2edee31638
ยท
2026-02-12 22:53:33 +08:00
History