mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
Add hint for MoltenVK (#678)
This commit is contained in:
@@ -3,6 +3,16 @@ include!(concat!(env!("OUT_DIR"), "/parallel_bindings.rs"));
|
||||
use crate::{device, ui};
|
||||
|
||||
pub fn init(device: &mut device::Device) {
|
||||
#[cfg(target_os = "macos")]
|
||||
unsafe {
|
||||
sdl3_sys::everything::SDL_SetHint(
|
||||
sdl3_sys::hints::SDL_HINT_VULKAN_LIBRARY,
|
||||
std::ffi::CString::new("/opt/homebrew/lib/libvulkan.dylib")
|
||||
.unwrap()
|
||||
.as_ptr(),
|
||||
);
|
||||
}
|
||||
|
||||
ui::sdl_init(sdl3_sys::init::SDL_INIT_VIDEO);
|
||||
ui::ttf_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user