Take vertex stream offset into the account when caching VBs

Fixes exploding vertices in TOCA Race Driver.
This commit is contained in:
Silent 2020-11-16 23:52:18 +01:00
parent 7e0f8f4b30
commit 6892591084
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ void CxbxVertexBufferConverter::ConvertStream
return;
}
pXboxVertexData += XboxStreamInput.Offset;
uiXboxVertexStride = XboxStreamInput.Stride;
// Set a new (exact) vertex count
uiVertexCount = pDrawContext->VerticesInBuffer;