Skip to content
Snippets Groups Projects
Commit 12cbee2c authored by Scott Wittenburg's avatar Scott Wittenburg
Browse files

Prevent empty splat shader string from crashing application.

parent f2e626cb
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,7 @@ void vtkOpenGLPointGaussianMapperHelper::ReplaceShaderColor(
{
std::string FSSource = shaders[vtkShader::Fragment]->GetSource();
if (this->Owner->GetSplatShaderCode())
if (this->Owner->GetSplatShaderCode() && strcmp(this->Owner->GetSplatShaderCode(), "") != 0)
{
vtkShaderProgram::Substitute(FSSource,"//VTK::Color::Impl",
this->Owner->GetSplatShaderCode(), false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment