Commit e181c950 authored by Nicholas Milef's avatar Nicholas Milef
Browse files

BUG: Fixed compile error

parent 0ed65feb
......@@ -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);
......
Supports Markdown
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