Skip to content

W3DWaterTracks: Reset index buffer offset to 0 before drawing - #102

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-water-tracks-index-buffer
Open

W3DWaterTracks: Reset index buffer offset to 0 before drawing#102
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-water-tracks-index-buffer

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-P8. The issue was that: Vertex buffer offset was incorrectly passed as index buffer offset, causing D3D to read indices out of bounds.

  • The index buffer offset was incorrectly being set to batchStart before drawing the water tracks.
  • This change resets the offset to 0 to ensure the correct indices are used for drawing.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2254602

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants