[vtk-developers] Patch for wxVTKRenderWindow.py and wxVTKRenderWindowInteractor.py

Chris Kruszynski Chris.Kruszynski at cwi.nl
Mon Nov 3 05:13:40 EST 2008


I just noticed that wxVTKRenderWindowInteractor started flickering and 
being very slow.

Apparently as of some version of wxPython, the GLCanvas widget by 
default creates an OpenGL context without double buffering, so if that 
widget is used as the base class for wxVTKRenderWindowInteractor, it 
will explicitly need to tell GLCanvas to enable double buffering.

wxVTKRenderWindow exhibits the same behaviour.

This patch fixes both wxVTKRenderWindow and wxVTKRenderWindowInteractor: 
if the base class is GLCanvas, it always enables double buffering.


Regards,

Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixwx.diff
Type: text/x-patch
Size: 2212 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20081103/4c86a529/attachment-0001.bin>


More information about the vtk-developers mailing list