mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Merge pull request #28 from yzsolt/update-libloading-to-0.7
Update libloading to 0.7
This commit is contained in:
@@ -18,7 +18,7 @@ implicit-link = []
|
||||
|
||||
[dependencies]
|
||||
bitflags = "1"
|
||||
libloading = { version = "0.6", optional = true }
|
||||
libloading = { version = "0.7", optional = true }
|
||||
|
||||
[dependencies.winapi]
|
||||
version = "0.3"
|
||||
|
||||
@@ -56,7 +56,7 @@ pub struct DxgiLib {
|
||||
#[cfg(feature = "libloading")]
|
||||
impl DxgiLib {
|
||||
pub fn new() -> Result<Self, libloading::Error> {
|
||||
libloading::Library::new("dxgi.dll").map(|lib| DxgiLib { lib })
|
||||
unsafe { libloading::Library::new("dxgi.dll").map(|lib| DxgiLib { lib }) }
|
||||
}
|
||||
|
||||
pub fn create_factory2(
|
||||
|
||||
@@ -96,6 +96,6 @@ pub struct D3D12Lib {
|
||||
#[cfg(feature = "libloading")]
|
||||
impl D3D12Lib {
|
||||
pub fn new() -> Result<Self, libloading::Error> {
|
||||
libloading::Library::new("d3d12.dll").map(|lib| D3D12Lib { lib })
|
||||
unsafe { libloading::Library::new("d3d12.dll").map(|lib| D3D12Lib { lib }) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user