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

WebGLShadowMap: Ensure to use the latest reference to WebGLObjects. #21452

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 12, 2021

Related issue: Fixed #17161.

Description

This PR ensures that WebGLShadowMap does not use an outdated version of WebGLObjects when a context loss happens.

Compared to the earlier PR, this one keeps initGLContext() clean. Public properties of the renderer's API are now restored where it's supposed to happen ( in onContextRestore()).

@mrdoob
Copy link
Owner

mrdoob commented Mar 12, 2021

Nice! 💆‍♂️

@mrdoob mrdoob added this to the r127 milestone Mar 12, 2021
@mrdoob mrdoob merged commit 6372b2e into mrdoob:dev Mar 12, 2021
@mrdoob
Copy link
Owner

mrdoob commented Mar 12, 2021

Thanks!

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.

WebGLShadowMap not handling context loss/restore?
2 participants