Fix invalid OpenGL states when rendering contours
Stretching the lifetime of VTK contexts and devices beyond the
actual drawing and reusing them for different renderers can result
in invalid OpenGL states.
This resulted sometimes in invisible contours when drawing segmehtations
in different render windows.