Merge pull request #2034 from CookiePLMonster/vertex-stream-offsets

Take vertex stream offset into the account when caching VBs
This commit is contained in:
Luke Usher 2020-11-16 23:07:32 +00:00 committed by GitHub
commit dc5f56222e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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