Disposing a mesh using occlusion queries causes an exception

I was wondering if anyone has run across this bug. I made a playground to reproduce the error which can be seen in the console. Press the “w” key to dispose the sphere mesh.


Trying to dispose the mesh should produce the following exception.

TypeError: setting getter-only property "isOcclusionQueryInProgress"

This does not appear to happen when dispose is called from the callback registered with scene.registerBeforeRender

Thanks a lot for the report, just pushed a fix, it will be in the next nightly

1 Like