Commit 7ec3c61d authored by Francois Bertel's avatar Francois Bertel

BUG:Fixed conditional in the wrong scope.

parent d5169e0b
......@@ -40,7 +40,7 @@
#include "vtkCamera.h"
#include "vtkMath.h"
vtkCxxRevisionMacro(vtkGaussianBlurPass, "1.8");
vtkCxxRevisionMacro(vtkGaussianBlurPass, "1.9");
vtkStandardNewMacro(vtkGaussianBlurPass);
extern const char *vtkGaussianBlurPassShader_fs;
......@@ -162,13 +162,14 @@ void vtkGaussianBlurPass::Render(const vtkRenderState *s)
}
this->Supported=supported;
if(!supported)
{
this->DelegatePass->Render(s);
this->NumberOfRenderedProps+=
this->DelegatePass->GetNumberOfRenderedProps();
return;
}
}
if(!this->Supported)
{
this->DelegatePass->Render(s);
this->NumberOfRenderedProps+=
this->DelegatePass->GetNumberOfRenderedProps();
return;
}
GLint savedDrawBuffer;
......
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