Skip to content

BufferSubData overflow with sky geometry - #1787

Merged
nstlaurent merged 2 commits into
devfrom
sky-geometry-overflow-fix
Sep 15, 2026
Merged

nstlaurent merged 2 commits into
devfrom
sky-geometry-overflow-fix

Conversation

@nstlaurent

@nstlaurent nstlaurent commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

This was reproduced reloading Eviternity MAP29 after the initial structures fall at the start. The SkyGeometry was never cleared from the side which caused the SkyGeometryManager to try to clear on stale references. On map reloads everything is assumed to be cleared so the StaticCacheGeometryRenderer will try to add everything new while the SkyGeometryManager would see the reference and end up using an out of bound index to try to clear.

Updates to InitBlockUnaligned to match StaticCacheGeometryRenderer for clearing vertices. It was also previously missing zero on the PrevZ.

This also adds a release guard to never upload out of range in addition to the debug assert.

…em but when the property still exists it causes it to try to clear memory outside the bounds of the GPU. adds release guard to never try to upload outside of range as well
@nstlaurent
nstlaurent merged commit c4c7602 into dev Sep 15, 2026
1 check passed
@nstlaurent
nstlaurent deleted the sky-geometry-overflow-fix branch September 15, 2026 11:00
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