diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs index 101cfc08..7114a872 100644 --- a/src/api/cocoa/mod.rs +++ b/src/api/cocoa/mod.rs @@ -770,7 +770,7 @@ impl GlContext for Window { } fn get_proc_address(&self, addr: &str) -> *const libc::c_void { - let symbol_name: CFString = FromStr::from_str(_addr).unwrap(); + let symbol_name: CFString = FromStr::from_str(addr).unwrap(); let framework_name: CFString = FromStr::from_str("com.apple.opengl").unwrap(); let framework = unsafe { CFBundleGetBundleWithIdentifier(framework_name.as_concrete_TypeRef())