From a597803c1374d634932e5c85acff2cb2c56223f1 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 13 May 2024 15:54:14 -0700 Subject: [PATCH] windows: fixup for newer libloading --- window/src/os/windows/wgl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })?;