diff --git a/window/src/os/windows/wgl.rs b/window/src/os/windows/wgl.rs index 25fc6e591..bdf493b98 100644 --- a/window/src/os/windows/wgl.rs +++ b/window/src/os/windows/wgl.rs @@ -106,7 +106,7 @@ impl WglWrapper { } } - let lib = libloading::Library::new("opengl32.dll").map_err(|e| { + let lib = unsafe { libloading::Library::new("opengl32.dll") }.map_err(|e| { log::error!("{:?}", e); e })?;