DXGI: Disabled DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT since support for it is not implemented correctly.
This commit is contained in:
parent
a8dc2c0b23
commit
23db05b990
22
src/dxgi.cpp
22
src/dxgi.cpp
@ -382,12 +382,12 @@ namespace bgfx
|
||||
BX_TRACE("Allow tearing is %ssupported.", allowTearing ? "" : "not ");
|
||||
|
||||
scdFlags |= allowTearing ? DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0;
|
||||
scdFlags |=
|
||||
(_scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL
|
||||
|| _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_DISCARD)
|
||||
? DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT
|
||||
: 0;
|
||||
|
||||
scdFlags |= false
|
||||
|| _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL
|
||||
|| _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_DISCARD
|
||||
? 0 // DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT
|
||||
: 0
|
||||
;
|
||||
|
||||
DX_RELEASE_I(factory5);
|
||||
}
|
||||
@ -665,10 +665,12 @@ namespace bgfx
|
||||
BX_TRACE("Allow tearing is %ssupported.", allowTearing ? "" : "not ");
|
||||
|
||||
scdFlags |= allowTearing ? DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0;
|
||||
scdFlags |= (_scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL
|
||||
|| _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_DISCARD)
|
||||
? DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT
|
||||
: 0;
|
||||
scdFlags |= false
|
||||
|| _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL
|
||||
|| _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_DISCARD
|
||||
? 0 // DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT
|
||||
: 0
|
||||
;
|
||||
|
||||
DX_RELEASE_I(factory5);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user