mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
Eliminate macOS Vulkan hint in SDL initialization (#690)
Removed macOS-specific Vulkan library hint from SDL initialization.
This commit is contained in:
@@ -69,16 +69,6 @@ impl Drop for Ui {
|
||||
|
||||
pub fn sdl_init(flag: sdl3_sys::init::SDL_InitFlags) {
|
||||
unsafe {
|
||||
#[cfg(target_os = "macos")]
|
||||
if flag & sdl3_sys::init::SDL_INIT_VIDEO != 0 {
|
||||
sdl3_sys::everything::SDL_SetHint(
|
||||
sdl3_sys::hints::SDL_HINT_VULKAN_LIBRARY,
|
||||
std::ffi::CString::new("/opt/homebrew/lib/libvulkan.dylib")
|
||||
.unwrap()
|
||||
.as_ptr(),
|
||||
);
|
||||
}
|
||||
|
||||
if sdl3_sys::init::SDL_WasInit(flag) == 0 && !sdl3_sys::init::SDL_InitSubSystem(flag) {
|
||||
let err = std::ffi::CStr::from_ptr(sdl3_sys::error::SDL_GetError())
|
||||
.to_str()
|
||||
|
||||
Reference in New Issue
Block a user