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);