diff --git a/simgear/scene/material/matlib.cxx b/simgear/scene/material/matlib.cxx index acca6dc9..e5499504 100644 --- a/simgear/scene/material/matlib.cxx +++ b/simgear/scene/material/matlib.cxx @@ -397,7 +397,7 @@ SGMaterialCache::Atlas SGMaterialLib::getMaterialTextureAtlas(SGVec2f center, co continue; } - atlas.dimensions->setElement(materialLookupIndex, osg::Vec4f(mat->get_xsize(), mat->get_ysize(), mat->get_shininess(), mat->get_parameter("edge-hardness"))); + atlas.dimensions->setElement(materialLookupIndex, osg::Vec4f(mat->get_xsize(), mat->get_ysize(), mat->get_shininess(), (double) mat->get_parameter("edge-hardness"))); atlas.ambient->setElement(materialLookupIndex, mat->get_ambient()); atlas.diffuse->setElement(materialLookupIndex, mat->get_diffuse()); atlas.specular->setElement(materialLookupIndex, mat->get_specular());