File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ wrapper::directx12::swap_chain::swap_chain(const ComPtr<IDXGISwapChain4>& source
15
15
16
16
void wrapper::directx12::swap_chain::present (bool sync) const
17
17
{
18
- mWrapperInstance ->Present (sync ? 1 : 0 , 0 );
18
+ mWrapperInstance ->Present (sync ? 1 : 0 , sync ? 0 : DXGI_PRESENT_ALLOW_TEARING );
19
19
}
20
20
21
21
DXGI_FORMAT wrapper::directx12::swap_chain::format () const
@@ -41,7 +41,7 @@ wrapper::directx12::swap_chain wrapper::directx12::swap_chain::create(const comm
41
41
desc.BufferDesc .Scaling = DXGI_MODE_SCALING_UNSPECIFIED;
42
42
desc.BufferDesc .ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED;
43
43
desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
44
- desc.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH ;
44
+ desc.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING ;
45
45
desc.OutputWindow = handle;
46
46
desc.SampleDesc .Quality = 0 ;
47
47
desc.SampleDesc .Count = 1 ;
You can’t perform that action at this time.
0 commit comments