]> git.cworth.org Git - apitrace-tests/blobdiff - apps/d3d10_1/tri.cpp
d3d*: Don't set the BufferDesc dimmension.
[apitrace-tests] / apps / d3d10_1 / tri.cpp
index b9ed7d52cefa50d18000cb1f147502426ec08156..7f128bcd0627adc7d75b2fedcf6302f3d4bbb689 100644 (file)
@@ -120,8 +120,6 @@ main(int argc, char *argv[])
 
     DXGI_SWAP_CHAIN_DESC SwapChainDesc;
     ZeroMemory(&SwapChainDesc, sizeof SwapChainDesc);
-    SwapChainDesc.BufferDesc.Width = WindowWidth;
-    SwapChainDesc.BufferDesc.Height = WindowHeight;
     SwapChainDesc.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;;
     SwapChainDesc.BufferDesc.RefreshRate.Numerator = 60;
     SwapChainDesc.BufferDesc.RefreshRate.Denominator = 1;
@@ -131,6 +129,7 @@ main(int argc, char *argv[])
     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)) {