I would like to report/have assistance on a bug I'm currently having with osgEarth. When working with the mask feature, the application crash inside the DrawElementsUInt::draw function inside the PrimitiveSet file in osg on glDrawElements.
I'm working with osgEarth 2.9.0 and osg 126.96.36.199
From what I gathered, it seems the glDrawElements function needs to have a VBO attached inside the state._vas. However, this VBO is always unbind and set to nullptr.
I noticed that the VBO was unbind inside the TileModelCompiler.cpp, from the osgEarthdrivers/engine_mp folder, every time something end up calling VertexArrayState::setVertexArray. I tried to correct this by myself but I always end up with more things that breaks.
At first I changed in src/osgEarthDrivers/engine_mp/TileModelCompiler.cpp, line 362