Fix dxgi_factory type error in release mode
This commit is contained in:
parent
83d942611f
commit
c014dbae8c
1 changed files with 1 additions and 1 deletions
|
@ -729,7 +729,7 @@ fn get_dxgi_factory() -> Result<IDXGIFactory6> {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
let factory_flag = DXGI_CREATE_FACTORY_DEBUG;
|
let factory_flag = DXGI_CREATE_FACTORY_DEBUG;
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
let factory_flag = 0u32;
|
let factory_flag = DXGI_CREATE_FACTORY_FLAGS::default();
|
||||||
unsafe { Ok(CreateDXGIFactory2(factory_flag)?) }
|
unsafe { Ok(CreateDXGIFactory2(factory_flag)?) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue