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

Prevent re-entrancy into VertexBatch.Draw() #5948

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

smoogipoo
Copy link
Contributor

@smoogipoo smoogipoo commented Jul 26, 2023

This can be merged independently and will not cause a breaking change.

In upcoming changes, I'll have VeldridRenderer.DrawVertices() and the soon-to-be GLRenderer.DrawVertices() binding uniform and array buffers locally. Doing this will trigger a FlushCurrentBatch() that currently causes a stack overflow. This should be a no-op.

@smoogipoo smoogipoo changed the title Prevent re-entrancy into VertexBatch.Draw() Prevent re-entrancy into VertexBatch.Draw() Jul 26, 2023
@smoogipoo smoogipoo mentioned this pull request Jul 26, 2023
1 task
@smoogipoo smoogipoo requested a review from peppy July 28, 2023 16:21
@peppy peppy merged commit 74fdbb5 into ppy:master Jul 28, 2023
9 of 12 checks passed
@smoogipoo smoogipoo deleted the prevent-vbo-reentrancy branch September 11, 2023 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants