From 09a73a1ac7f07b423faa3aa4e23e5fd1ea7e57a1 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 31 Jul 2016 14:52:03 +0700 Subject: [PATCH] Parameters to macro were the wrong way around --- renderdoc/driver/d3d12/d3d12_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d12/d3d12_common.cpp b/renderdoc/driver/d3d12/d3d12_common.cpp index 736fa6d39..4221cc83d 100644 --- a/renderdoc/driver/d3d12/d3d12_common.cpp +++ b/renderdoc/driver/d3d12/d3d12_common.cpp @@ -73,7 +73,7 @@ string ToStrHelper::Get(const D3D12ComponentMappin uint32_t swizzle = (uint32_t)el; for(int i = 0; i < 4; i++) - ret += mapping[D3D12_DECODE_SHADER_4_COMPONENT_MAPPING(swizzle, i)]; + ret += mapping[D3D12_DECODE_SHADER_4_COMPONENT_MAPPING(i, swizzle)]; return ret; }