Skip to content

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