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