Unnecessary glFlush() call in vtkOpenGLFreeTypeTextMapper::RenderOverlay()
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.