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

WebGPURenderer: fix renderContext tracking in WebGLBackend #27490

Merged
merged 1 commit into from Jan 4, 2024

Conversation

aardgoose
Copy link
Contributor

MSAA implementation accidentally mis set the backend._currentContext value which resulted in incorrect linked lists of renderContexts within nested passes. This broke the shadow example using WebGLBackend which has two nested shadow map creation passes.

This removes the need to set the framebuffer in draw(), since finishRender now restores the correct settings as expected. New examples appear to be working as expected still.

@RenaudRohlinger

@RenaudRohlinger
Copy link
Collaborator

Ah! so that was it! We were talking about this with @sunag in #27473 (comment) but the solution was way easier!

Thanks for this, I just tested all the webgpu examples in a webgl context and it does indeed fix the issue properly.

@sunag sunag added this to the r161 milestone Jan 4, 2024
@sunag sunag merged commit 67dfcd8 into mrdoob:dev Jan 4, 2024
11 checks passed
@aardgoose aardgoose deleted the rc-tracking branch January 4, 2024 11:10
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
)

Co-authored-by: aardgoose <angus.sawyer@email.com>
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.

None yet

3 participants