X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=apps%2Fd3d11%2Ftri.cpp;h=2227b811667c9a2087b4fbca4cbb76b704dd4b22;hp=a380ca7c7b4581a0cc5be554ea1cc3cb25b7a6ca;hb=0ba9c4e22bc917a666b8762b734884e72c142ccf;hpb=700b1cef4ba8cc818d9b9080f368f64c392513ec diff --git a/apps/d3d11/tri.cpp b/apps/d3d11/tri.cpp index a380ca7..2227b81 100644 --- a/apps/d3d11/tri.cpp +++ b/apps/d3d11/tri.cpp @@ -43,7 +43,9 @@ static ID3D11Device * g_pDevice = NULL; static ID3D11DeviceContext * g_pDeviceContext = NULL; -int main(int argc, char *argv[]){ +int +main(int argc, char *argv[]) +{ HRESULT hr; HINSTANCE hInstance = GetModuleHandle(NULL); @@ -107,6 +109,7 @@ int main(int argc, char *argv[]){ SwapChainDesc.BufferCount = 2; SwapChainDesc.OutputWindow = hWnd; SwapChainDesc.Windowed = true; + SwapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; static const D3D_FEATURE_LEVEL FeatureLevels[] = { D3D_FEATURE_LEVEL_11_0,