Remove DRI_PRIME (#1159)

Not needed with Vulkan
This commit is contained in:
Logan McNaughton 2026-07-13 12:28:02 +02:00 committed by GitHub
parent 282ec6c6c7
commit 67b8f472b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,13 +106,9 @@ pub struct Ui {
}
pub fn sdl_hints() {
#[cfg(target_os = "linux")]
unsafe {
std::env::set_var("DRI_PRIME", "1");
std::env::set_var("__NV_PRIME_RENDER_OFFLOAD", "1");
}
unsafe {
let hint = std::ffi::CString::new("1").unwrap();
sdl3_sys::everything::SDL_SetHint(
sdl3_sys::everything::SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,