When i use highlightLayer, get some warnings "glDrawElements: range out of bounds for buffer"

I am trying to highlight some mesh with highlightLayer. And there are some other meshes, their wireframe is true. When i run the code, i got many warnings:
“[.WebGL-0x7fe6a9877800]GL ERROR :GL_INVALID_OPERATION : glDrawElements: range out of bounds for buffer”

This is the demo code: Babylon.js Playground
I only added the sphere into highlightLayer。
How should this error be resolved? I am a little confused that the highlightLayer will effect all meshes?

wireframe mode is currently not supported by the highlightLayer you could exclude the meshes with wireframe from the layer manually as we are looking into how to fix it.

Will be fixed in the next nightly with Fix Node Editor popup by sebavan · Pull Request #11013 · BabylonJS/Babylon.js · GitHub

2 Likes