I hit a strange bug where locking the mesh vertex buffer of the mesh produced by ManualObject::convertToMesh will crash with this message :
I'm locking it HBL_READ_ONLY.Assertion failed: ((mUsage & HBU_WRITE_ONLY && options != HBL_NORMAL && options != HBL_READ_ONLY) || !(mUsage & HBU_WRITE_ONLY)) && "Reading from a write-only buffer! Create the buffer without HBL_WRITE_ONLY bit", file ..\..\..\RenderSystems\GL3Plus\src\OgreGL3PlusHardwareVertexBuffer.cpp, line 86
Doing the same operation in 2.0 didn't yield this error.
The vertex buffer of the ManualObject is indeed created with HBU_WRITE_ONLY.
The vertexdata is then cloned in convertToMesh, so maybe it's the cloning behavior that changed ?
Edit : This is a bit weird... I suppose most Meshes and Meshes converted from ManualObject have always had WRITE_ONLY vertex buffers. But the code in picking tools like MOC CollisionTools has always locked these same buffers to be read in READ_ONLY mode and this was never a problem. So this is just a case of stronger enforcement of those rules in the new renderer ?