]> git.cworth.org Git - apitrace-tests/blobdiff - apps/d3d10_1/tri.cpp
Add d3d8 scnapshot. Be consistent with swapeffect.
[apitrace-tests] / apps / d3d10_1 / tri.cpp
index b9ed7d52cefa50d18000cb1f147502426ec08156..674eaacc453f1fd0293f2f8e23718ae31e7b4548 100644 (file)
@@ -131,6 +131,7 @@ main(int argc, char *argv[])
     SwapChainDesc.BufferCount = 2;
     SwapChainDesc.OutputWindow = hWnd;
     SwapChainDesc.Windowed = true;
     SwapChainDesc.BufferCount = 2;
     SwapChainDesc.OutputWindow = hWnd;
     SwapChainDesc.Windowed = true;
+    SwapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
 
     hr = g_pFactory->CreateSwapChain(g_pDevice, &SwapChainDesc, &g_pSwapChain);
     if (FAILED(hr)) {
 
     hr = g_pFactory->CreateSwapChain(g_pDevice, &SwapChainDesc, &g_pSwapChain);
     if (FAILED(hr)) {