Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash caused by wrong pointer used after VtxBuffer resized during 3d navigator rendering #5719

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

Noisyfox
Copy link
Collaborator

@Noisyfox Noisyfox commented Jun 15, 2024

The old drawList->_VtxWritePtr will be invalid if the VtxBuffer get resized during text rendering, which caused this crash. Use the vtx index instead of the raw printer.

Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SoftFever SoftFever merged commit 54653ea into SoftFever:main Jun 15, 2024
12 checks passed
@Noisyfox Noisyfox deleted the bugfox/3d-navigator-crash branch June 16, 2024 03:24
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.

2 participants