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

WebGLBindingStates : Force update after reset() call. #23691

Merged
merged 3 commits into from
Mar 10, 2022
Merged

WebGLBindingStates : Force update after reset() call. #23691

merged 3 commits into from
Mar 10, 2022

Conversation

boourns
Copy link
Contributor

@boourns boourns commented Mar 9, 2022

Fixed #23688.

Description

Use a flag to force WebGLBindingStates.setup to update buffers following a call to WebGLBindingStates.reset().

This isn't a pretty solution, but wanted to open a PR and see how the e2e tests go and maybe provoke a discussion if I'm going down the wrong path here.

@Mugen87 Mugen87 changed the title re-update buffers following a reset() call WebGLBindingStates : Force update after reset() call. Mar 10, 2022
@boourns
Copy link
Contributor Author

boourns commented Mar 10, 2022

@Mugen87 Thanks for the review - I've updated the code based on your suggestions.

@mrdoob mrdoob added this to the r139 milestone Mar 10, 2022
@mrdoob mrdoob merged commit d61150a into mrdoob:dev Mar 10, 2022
@mrdoob
Copy link
Owner

mrdoob commented Mar 10, 2022

Thanks!

abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
* re-update buffers following a reset() call

* fix lint

* WebGLBindingStates: rename mustUpdateBuffers to forceUpdate
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.

After calling WebGLRenderer.resetState() subsequent render does not setup VertexAttributes
3 participants