mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 14:21:31 +11:00
Fixed deprecation warnings
This commit is contained in:
parent
86af6b6387
commit
1b0064f9f7
|
@ -475,8 +475,8 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_proc_address(&self, _addr: &str) -> *const () {
|
pub fn get_proc_address(&self, _addr: &str) -> *const () {
|
||||||
let symbol_name: CFString = from_str(_addr).unwrap();
|
let symbol_name = _addr.parse::<CFString>().unwrap();
|
||||||
let framework_name: CFString = from_str("com.apple.opengl").unwrap();
|
let framework_name = "com.apple.opengl".parse::<CFString>().unwrap();
|
||||||
let framework = unsafe {
|
let framework = unsafe {
|
||||||
CFBundleGetBundleWithIdentifier(framework_name.as_concrete_TypeRef())
|
CFBundleGetBundleWithIdentifier(framework_name.as_concrete_TypeRef())
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue