Fix accidental stomping of relative byte offsets in tests

This commit is contained in:
baldurk
2020-02-21 17:21:59 +00:00
parent e8b342f332
commit 81110ceca3
+1 -1
View File
@@ -171,7 +171,7 @@ def get_postvs_attrs(controller: rd.ReplayController, mesh: rd.MeshFormat, data_
if pipe.HasAlignedPostVSData(data_stage) and (accum_offset % alignment) != 0:
accum_offset += alignment - (accum_offset % alignment)
attrs[i].mesh.vertexByteOffset = accum_offset
attrs[i].mesh.vertexByteOffset += accum_offset
accum_offset += elem_size * fmt.compCount