Skip to content
Snippets Groups Projects
Commit 5a15e3ae authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

Merge branch 'fixCompileError' into 'master'

BUG: Fixed compile error

See merge request !211
parents 0ed65feb e181c950
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,9 @@ VTKCustomPolyDataMapper::SetMapperShaderParameters(
if (this->GetOpenGLMode(actor->GetProperty()->GetRepresentation(), helper.PrimitiveType) == GL_TRIANGLES)
{
auto diffuseColorTemp = material->getDiffuseColor();
float diffuseColor[3] = {diffuseColorTemp.r, diffuseColorTemp.g, diffuseColorTemp.b};
float diffuseColor[3] = {(float)diffuseColorTemp.r,
(float)diffuseColorTemp.g,
(float)diffuseColorTemp.b};
helper.Program->SetUniform3f("diffuseColorUniform", diffuseColor);
auto diffuseTexture = material->getTexture(Texture::DIFFUSE);
......
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