Fix calculation of index buffer offset. Closes #1948

This commit is contained in:
baldurk
2020-06-15 15:44:09 +01:00
parent 52967ad291
commit 9805c9d662
+1 -1
View File
@@ -1529,7 +1529,7 @@ static void ConfigureMeshColumns(ICaptureContext &ctx, PopulateBufferData *bufda
BufferDescription *buf = ctx.GetBuffer(ib.resourceId);
if(buf)
{
uint64_t offset = ib.byteOffset - draw->indexOffset * draw->indexByteWidth;
uint64_t offset = ib.byteOffset + draw->indexOffset * draw->indexByteWidth;
if(offset > buf->length)
bytesAvailable = 0;
else