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