my task is to display some polygons with border on the screen. My approach is to use PolygonBuilder to tesselate my incoming polygons to triangles and then enable edge rendering on the resulting polygon.
However, instead of borders, I get a repeating error message in the console:
GL_INVALID_OPERATION: Must have element array buffer bound.
Playground: Babylon.js Playground
Googeling this error message indicates that there might be a problem with the index buffer, but my minimal debugging showed that PolygonBuilder creates indices, so I am currently out of ideas.
Thank you for your help.