diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index fa0006bc..5b3e4175 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -619,7 +619,8 @@ namespace dxvk { if (prev.binding == attrib.binding) { const DxvkFormatInfo* formatInfo = imageFormatInfo(prev.format); - attrib.offset = align(prev.offset + formatInfo->elementSize, 4); + VkDeviceSize alignment = std::min(formatInfo->elementSize, 4); + attrib.offset = align(prev.offset + formatInfo->elementSize, alignment); break; } }