Fix incorrect stride when access chaining into vectors within matrices

* This would only break for row-major matrices where the index needs to pull out
  a column.
This commit is contained in:
baldurk
2023-12-19 17:07:26 +00:00
parent 5eb3778b9d
commit 586ba368ce
@@ -2357,7 +2357,7 @@ ShaderVariable Debugger::ReadFromPointer(const ShaderVariable &ptr) const
for(uint8_t c = 0; c < var.columns; c++)
{
apiWrapper->ReadBufferValue(bind, offset + c * matrixStride, VarTypeByteSize(var.type),
VarElemPointer(var, VarTypeByteSize(var.type) * c));
VarElemPointer(var, c));
}
}
}