vtkTextActor disappears when there is a vtkLODActor with BackfaceCullingOn
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
This is the same issue reported in #12588 (closed) but with vtkLODActor.
When there is a vtkLODActor with BackfaceCullingOn drawn just before a vtkTextActor than the vtkTextActor disappears.
This due to GL_CULL_FACE state is leaked (set in vtkProperty::Render) to the next vtkTextActor render state.
See the attached example. When you press 'n' which changes the culling setting of the 2nd sphere, the text disappears. 'b' changes the culling of the first sphere.
I think the problem is that the property's PostRender() method is not called after Render() in vtkLODActor.cxx. https://github.com/Kitware/VTK/blob/28aebaa3c3a722edd57275c35c4e7dbe1cf8cabc/Rendering/LOD/vtkLODActor.cxx#L208
Whereas in vtkActor.cxx, it is called. https://github.com/Kitware/VTK/blob/22e22f62315cd5ea391facfa13074205e6534a1d/Rendering/Core/vtkActor.cxx#L183