From 6982dd838f04d1d0f80534a9d88d6cc32e46ff2c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 5 Feb 2018 00:04:41 +0100 Subject: [PATCH] (MSVC 2017) Fix VS 2017 solution --- gfx/common/d3d12_common.c | 2 +- gfx/common/d3d12_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/common/d3d12_common.c b/gfx/common/d3d12_common.c index ac2b82f636..b54a3604aa 100644 --- a/gfx/common/d3d12_common.c +++ b/gfx/common/d3d12_common.c @@ -310,7 +310,7 @@ bool d3d12_init_descriptors(d3d12_video_t* d3d12) }, }; - D3D12_ROOT_PARAMETER rootParameters[ROOT_ID_MAX] = {}; + D3D12_ROOT_PARAMETER rootParameters[ROOT_ID_MAX]; rootParameters[ROOT_ID_TEXTURE_T].ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE; rootParameters[ROOT_ID_TEXTURE_T].DescriptorTable.NumDescriptorRanges = countof(srv_table); diff --git a/gfx/common/d3d12_common.h b/gfx/common/d3d12_common.h index dfa0010a92..38ca8994e0 100644 --- a/gfx/common/d3d12_common.h +++ b/gfx/common/d3d12_common.h @@ -1408,7 +1408,7 @@ static INLINE void d3d12_resource_transition( D3D12_RESOURCE_STATES state_before, D3D12_RESOURCE_STATES state_after) { - D3D12_RESOURCE_BARRIER barrier = {}; + D3D12_RESOURCE_BARRIER barrier; barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION; barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; barrier.Transition.pResource = resource;