Commit b8af0b7c authored by Sean McBride's avatar Sean McBride

Fixed analyzer warning about possible null deref

Added check for null, other code above was doing it.

Change-Id: I0f58a1957d4586801b98805e0bd9bdcdf115eeb2
parent 70d8784b
......@@ -323,7 +323,8 @@ void vtkOpenGLImageSliceMapper::RenderTexturedPolygon(
}
GLenum interp = GL_LINEAR;
if (property->GetInterpolationType() == VTK_NEAREST_INTERPOLATION &&
if (property &&
property->GetInterpolationType() == VTK_NEAREST_INTERPOLATION &&
!this->ExactPixelMatch)
{
interp = GL_NEAREST;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment