Skip to content

W3DVolumetricShadow: Prevent crashes due to overflowing shadow vertex/index buffers - #48

Merged
x64-dev merged 1 commit into
mainfrom
seer/fix-shadow-buffer-overflow
Oct 10, 2025
Merged

W3DVolumetricShadow: Prevent crashes due to overflowing shadow vertex/index buffers#48
x64-dev merged 1 commit into
mainfrom
seer/fix-shadow-buffer-overflow

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Oct 5, 2025

Copy link
Copy Markdown

Fixes CLIENT-DQ. The issue was that: Shadow volume geometry size exceeded the allocated graphics buffer capacity, triggering a DEBUG_ASSERTCRASH breakpoint.

The changes prevent crashes that occur when shadow volumes are too complex for the allocated vertex and index buffers. Instead of crashing, the shadow rendering is skipped for that frame.

  • Added checks to ensure vertex and index buffers are large enough before rendering.
  • If allocation fails or buffer is too small, the buffers are released and set to NULL to prevent further use.
  • Rendering is skipped if the buffers are NULL or too small.

This fix was generated by Seer in Sentry, triggered by x64-dev. 👁️ Run ID: 1769180

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

@x64-dev
x64-dev marked this pull request as ready for review October 10, 2025 21:19
@x64-dev
x64-dev merged commit 369b429 into main Oct 10, 2025
5 checks passed
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.

1 participant