Commit 7a5da229 authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot
Browse files

Merge topic 'lic2d-null-checks'

786281d4

 Add NULL checks to LIC2D setters
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1629
parents dcbd7e0f 786281d4
......@@ -1176,48 +1176,73 @@ void vtkLineIntegralConvolution2D::SetNormalizeVectors(int val)
// ----------------------------------------------------------------------------
void vtkLineIntegralConvolution2D::SetVTShader(vtkShaderProgram * prog)
{
this->VTShader->Program = prog;
if (this->VTShader)
{
this->VTShader->Program = prog;
}
}
// ----------------------------------------------------------------------------
void vtkLineIntegralConvolution2D::SetLIC0Shader(vtkShaderProgram * prog)
{
this->LIC0Shader->Program = prog;
if (this->LIC0Shader)
{
this->LIC0Shader->Program = prog;
}
}
// ----------------------------------------------------------------------------
void vtkLineIntegralConvolution2D::SetLICIShader(vtkShaderProgram * prog)
{
this->LICIShader->Program = prog;
if (this->LICIShader)
{
this->LICIShader->Program = prog;
}
}
// ----------------------------------------------------------------------------
void vtkLineIntegralConvolution2D::SetLICNShader(vtkShaderProgram * prog)
{
this->LICNShader->Program = prog;
if (this->LICNShader)
{
this->LICNShader->Program = prog;
}
}
// ----------------------------------------------------------------------------
void vtkLineIntegralConvolution2D::SetEEShader(vtkShaderProgram * prog)
{
this->EEShader->Program = prog;
if (this->EEShader)
{
this->EEShader->Program = prog;
}
}
// ----------------------------------------------------------------------------
void vtkLineIntegralConvolution2D::SetCEShader(vtkShaderProgram * prog)
{
this->CEShader->Program = prog;
if (this->CEShader)
{
this->CEShader->Program = prog;
}
}
// ----------------------------------------------------------------------------
void vtkLineIntegralConvolution2D::SetAAHShader(vtkShaderProgram * prog)
{
this->AAHShader->Program = prog;
if (this->AAHShader)
{
this->AAHShader->Program = prog;
}
}
// ----------------------------------------------------------------------------
void vtkLineIntegralConvolution2D::SetAAVShader(vtkShaderProgram * prog)
{
this->AAVShader->Program = prog;
if (this->AAVShader)
{
this->AAVShader->Program = prog;
}
}
namespace {
......
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