From 29bc86c9885156cfb998ae3aa42ddb026c300398 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 22 Feb 2013 15:01:10 +0000 Subject: [PATCH] d3d*: Don't set the BufferDesc dimmension. --- apps/d3d10/tri.cpp | 2 -- apps/d3d10_1/tri.cpp | 2 -- apps/d3d10_1/tri_level_9_1.cpp | 2 -- apps/d3d11/tri.cpp | 2 -- apps/d3d11_1/tri.cpp | 2 -- 5 files changed, 10 deletions(-) diff --git a/apps/d3d10/tri.cpp b/apps/d3d10/tri.cpp index c4d9f2b..9e0aec6 100644 --- a/apps/d3d10/tri.cpp +++ b/apps/d3d10/tri.cpp @@ -119,8 +119,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; diff --git a/apps/d3d10_1/tri.cpp b/apps/d3d10_1/tri.cpp index 674eaac..7f128bc 100644 --- a/apps/d3d10_1/tri.cpp +++ b/apps/d3d10_1/tri.cpp @@ -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; diff --git a/apps/d3d10_1/tri_level_9_1.cpp b/apps/d3d10_1/tri_level_9_1.cpp index 76a34f8..132b301 100644 --- a/apps/d3d10_1/tri_level_9_1.cpp +++ b/apps/d3d10_1/tri_level_9_1.cpp @@ -95,8 +95,6 @@ int 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_B8G8R8A8_UNORM;; SwapChainDesc.BufferDesc.RefreshRate.Numerator = 60; SwapChainDesc.BufferDesc.RefreshRate.Denominator = 1; diff --git a/apps/d3d11/tri.cpp b/apps/d3d11/tri.cpp index 2227b81..fe74631 100644 --- a/apps/d3d11/tri.cpp +++ b/apps/d3d11/tri.cpp @@ -98,8 +98,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; diff --git a/apps/d3d11_1/tri.cpp b/apps/d3d11_1/tri.cpp index ff297ed..390561a 100644 --- a/apps/d3d11_1/tri.cpp +++ b/apps/d3d11_1/tri.cpp @@ -98,8 +98,6 @@ int 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; -- 2.43.0