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

Increase the buffer size if necessary before adding markers #2838

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

bdunkin
Copy link
Contributor

@bdunkin bdunkin commented Jul 8, 2022

Adding markers will sometimes crash because the buffer is too small for the new marker. The function that adds new markers does not try to increase the size of the buffer before adding the marker. This PR makes it so that the buffer will be increased in size if it is getting close to capacity, just like when adding a uniform.

@bdunkin bdunkin requested a review from bkaradzic as a code owner July 8, 2022 18:40
@bkaradzic bkaradzic merged commit f9ab3b5 into bkaradzic:master Jul 8, 2022
mipek pushed a commit to mipek/bgfx that referenced this pull request Mar 2, 2024
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