MantisBT - VTK
View Issue Details
0009365VTK(No Category)public2009-08-05 09:202016-08-12 09:55
Sergey Anikin 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0009365: Unnecessary glFlush() call in vtkOpenGLFreeTypeTextMapper::RenderOverlay()
In VTK 5.4.2 and older versions there is a strange glFlush() call in vtkOpenGLFreeTypeTextMapper::RenderOverlay().
Even if it leads to no visible consequences on most "native" Linux X servers (neither locally nor through a remote connection), on some Win32 X servers like X-Win32 or Exceed it results in frame buffer swapping, and everything drawn after the first text label goes immediately to the active frame buffer and appears on the screen.

I have tried to comment glFlush() call (most likely, it remains there since some debugging). This resolves my problem, thus I attach the corrected source file for validation and testing.
No tags attached.
gz vtkOpenGLFreeTypeTextMapper.tar.gz (3,988) 2009-08-05 09:20
https://www.vtk.org/Bug/file/7396/vtkOpenGLFreeTypeTextMapper.tar.gz
Issue History
2009-08-05 09:20Sergey AnikinNew Issue
2009-08-05 09:20Sergey AnikinFile Added: vtkOpenGLFreeTypeTextMapper.tar.gz
2009-10-29 14:12Sean McBrideNote Added: 0018280
2009-10-29 14:12Sean McBrideStatusbacklog => tabled
2009-10-29 14:12Sean McBrideAssigned To => François Bertel
2010-09-07 13:44François BertelAssigned ToFrançois Bertel =>
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037093
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0018280)
Sean McBride   
2009-10-29 14:12   
I tried this change on my working copy and 1) no new test failures were introduced 2) it does not cause any problems in my app, including where I use vtk to draw text.

flushes are expensive, so if this really isn't needed, that'd be nice.

Assigning to François because I know he knows about ogl&vtk. :)
(0037093)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.