[vtk-developers] Painter GetSet Failures
David Gobbi
david.gobbi at gmail.com
Thu Dec 2 10:32:52 EST 2010
Hi All,
TestSetGet is failing on vtkOpenGLScalarsToColorsPainter, because
some of its Get methods directly invoke OpenGL without checking for
a valid context first:
vtkIdType vtkOpenGLScalarsToColorsPainter::GetTextureSizeLimit()
{
GLint textureSize;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &textureSize);
return static_cast<vtkIdType>(textureSize);
}
int vtkOpenGLScalarsToColorsPainter::GetPremultiplyColorsWithAlpha(
vtkActor* actor)
{
GLint alphaBits;
glGetIntegerv(GL_ALPHA_BITS, &alphaBits);
...
}
- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20101202/a807221d/attachment.html>
More information about the vtk-developers
mailing list