Image cursors not shown properly in VTK 9.1 (Four Pane Viewer)

Hello!

If I am running the Four Pane Viewer example with VTK 9.1, the cursors are not shown properly.
I.e. the cursors are not shown at all, only some dots of the line are shown or the line is behind the image. If I remember correctly, the example worked fine in previous versions I have used.


In Debug mode I get some error messages:

Generic Warning: In C:\Updated_Libraries\VTK\Sources\VTK-9.1.0.rc2\Rendering\OpenGL2\vtkOpenGLState.cxx, line 525
Error glBindFramebuffer1 OpenGL errors detected
0 : (1282) Invalid operation

with stack trace of
at vtksys::SystemInformationImplementation::GetProgramStack in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\utilities\kwsys\vtksys\systeminformation.cxx line 3980
at vtksys::SystemInformation::GetProgramStack in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\utilities\kwsys\vtksys\systeminformation.cxx line 829
at `anonymous namespace’::reportOpenGLErrors in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglstate.cxx line 294
at vtkOpenGLState::vtkglBindFramebuffer in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglstate.cxx line 525
at vtkOpenGLState::vtkBindFramebuffer in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglstate.cxx line 492
at vtkOpenGLFramebufferObject::Bind in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglframebufferobject.cxx line 747
at vtkOpenGLFramebufferObject::Bind in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglframebufferobject.cxx line 730
at vtkOrderIndependentTranslucentPass::Render in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkorderindependenttranslucentpass.cxx line 319
at vtkOpenGLRenderer::DeviceRenderTranslucentPolygonalGeometry in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglrenderer.cxx line 560
at vtkOpenGLRenderer::UpdateGeometry in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglrenderer.cxx line 406
at vtkOpenGLRenderer::DeviceRender in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglrenderer.cxx line 300
at vtkRenderer::Render in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\core\vtkrenderer.cxx line 383
at vtkRendererCollection::Render in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\core\vtkrenderercollection.cxx line 53
at vtkRenderWindow::DoStereoRender in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\core\vtkrenderwindow.cxx line 347
at vtkRenderWindow::Render in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\core\vtkrenderwindow.cxx line 306
at vtkOpenGLRenderWindow::Render in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkopenglrenderwindow.cxx line 2335
at vtkGenericOpenGLRenderWindow::Render in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\opengl2\vtkgenericopenglrenderwindow.cxx line 225
at vtkRenderWindowInteractor::Render in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\rendering\core\vtkrenderwindowinteractor.cxx line 186
at QVTKRenderWindowAdapter::QVTKInternals::paint in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\guisupport\qt\qvtkrenderwindowadapter.cxx line 269
at QVTKRenderWindowAdapter::paint in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\guisupport\qt\qvtkrenderwindowadapter.cxx line 547
at QVTKOpenGLNativeWidget::paintGL in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\guisupport\qt\qvtkopenglnativewidget.cxx line 265
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QVTKOpenGLNativeWidget::event in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\guisupport\qt\qvtkopenglnativewidget.cxx line 295
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QCborMap::value
at QCborMap::value
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QVTKOpenGLNativeWidget::event in c:\updated_libraries\vtk\sources\vtk-9.1.0.rc2\guisupport\qt\qvtkopenglnativewidget.cxx line 295
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QCborMap::value
at QCborMap::value
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at QStyleOptionTabBarBase::QStyleOptionTabBarBase
at WinMain in c:\qt\5.12.6\qtbase\src\winmain\qtmain_win.cpp line 97
at invoke_main in f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl line 99
at __scrt_common_main_seh in f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl line 253
at __scrt_common_main in f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl line 296
at WinMainCRTStartup in f:\dd\vctools\crt\vcstartup\src\startup\exe_winmain.cpp line 17
at BaseThreadInitThunk
at RtlUserThreadStart

I did not modify the example.

Any ideas how to solve this issue?

Thank you!