mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
Remove public exports of gl_common and libc
This commit is contained in:
@@ -384,12 +384,12 @@ impl GlContext for Window {
|
||||
false
|
||||
}
|
||||
|
||||
fn get_proc_address(&self, addr: &str) -> *const libc::c_void {
|
||||
fn get_proc_address(&self, addr: &str) -> *const () {
|
||||
let addr_c = CString::new(addr).unwrap();
|
||||
let path = CString::new("/System/Library/Frameworks/OpenGLES.framework/OpenGLES").unwrap();
|
||||
unsafe {
|
||||
let lib = dlopen(path.as_ptr(), RTLD_LAZY | RTLD_GLOBAL);
|
||||
dlsym(lib, addr_c.as_ptr())
|
||||
dlsym(lib, addr_c.as_ptr()) as *const _
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user