[vtk-developers] vtkShadowRenderer

Lisa Avila lisa.avila at kitware.com
Mon Mar 31 16:41:39 EST 2003


Hi Brian,


>vtkOpenGLPolyDataMapper.cxx -- line 126
>ren->GetRenderWindow()->MakeCurrent();

This line is needed because the Update call made to update the input data 
may have caused another OpenGL context to become current. This line cannot 
be removed.


>vtkOpenGLProperty.cxx -- line 51
>glDisable(GL_TEXTURE_2D);

This actually should be replaced - instead of enabling and disabling things 
we should probably push the attribute bits and pop them - the only problem 
is that the path through the rendering code goes through the OpenGL 
property early on - so we could push there - but it is not quite as clear 
where we would do the pop.  This is the same reason why the disable is here 
- it may have been enabled in a previous prop but not disabled, so it is 
done in the next prop's property. Do you know why this particular disable 
is causing you problems?

Lisa






More information about the vtk-developers mailing list