Fix data type access when accessing scalars in vectors in SSBOs

This commit is contained in:
baldurk
2020-04-28 15:54:04 +01:00
parent 50359b03c9
commit 80e7e27a9e
@@ -1101,7 +1101,7 @@ ShaderVariable Debugger::MakeCompositePointer(const ShaderVariable &base, Id id,
// type is the resulting scalar (first inner does matrix->colun type, second does column
// type->scalar type)
type = &dataTypes[dataTypes[type->InnerType()].InnerType()];
type = &dataTypes[type->InnerType()];
byteOffset += indices[i] * (type->scalar().width / 8);
}