From fb4663fcc8d7c0885b194c145c7830af0ea9c009 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 31 Jan 2018 11:25:49 +0100 Subject: [PATCH] [dxbc] Remove duplicate image type declaration --- src/dxbc/dxbc_compiler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dxbc/dxbc_compiler.cpp b/src/dxbc/dxbc_compiler.cpp index 2a566682..1d9fd27a 100644 --- a/src/dxbc/dxbc_compiler.cpp +++ b/src/dxbc/dxbc_compiler.cpp @@ -766,9 +766,7 @@ namespace dxvk { res.sampledType = sampledType; res.sampledTypeId = sampledTypeId; res.imageTypeId = imageTypeId; - res.colorTypeId = m_module.defImageType(sampledTypeId, - typeInfo.dim, 0, typeInfo.array, typeInfo.ms, typeInfo.sampled, - spv::ImageFormatUnknown); + res.colorTypeId = imageTypeId; res.depthTypeId = m_module.defImageType(sampledTypeId, typeInfo.dim, 1, typeInfo.array, typeInfo.ms, typeInfo.sampled, spv::ImageFormatUnknown);