mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 06:26:30 +00:00
Fix calculation of index buffer offset. Closes #1948
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user