From 8a93e8d503ceced1066767bd50c911704cee1213 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Mon, 12 Feb 2018 01:29:44 +0100 Subject: [PATCH] (D3D12) silence warning. --- gfx/common/d3d12_common.c | 1 + gfx/drivers/d3d12.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gfx/common/d3d12_common.c b/gfx/common/d3d12_common.c index 132842ca61..b014087ab9 100644 --- a/gfx/common/d3d12_common.c +++ b/gfx/common/d3d12_common.c @@ -474,6 +474,7 @@ void d3d12_init_samplers(d3d12_video_t* d3d12) { switch (i) { + default: case RARCH_WRAP_BORDER: desc.AddressU = D3D12_TEXTURE_ADDRESS_MODE_BORDER; break; diff --git a/gfx/drivers/d3d12.c b/gfx/drivers/d3d12.c index 7e9ee50b3a..abf16c1b5f 100644 --- a/gfx/drivers/d3d12.c +++ b/gfx/drivers/d3d12.c @@ -1320,6 +1320,7 @@ static bool d3d12_gfx_frame( switch (texture_sem->wrap) { + default: case RARCH_WRAP_BORDER: desc.AddressU = D3D12_TEXTURE_ADDRESS_MODE_BORDER; break;