Fixed some compiler warnings.

Removed m_mapUsedMaterials as it didn't seem to be used.
This commit is contained in:
David Williams
2011-11-28 16:43:40 +00:00
parent 3ae119f171
commit 97e6b56778
6 changed files with 20 additions and 22 deletions

View File

@ -49,7 +49,7 @@ void renderRegionImmediateMode(PolyVox::SurfaceMesh<PositionMaterialNormal>& mes
uint8_t material = vertex.getMaterial() + 0.5;
uint8_t material = static_cast<uint8_t>(vertex.getMaterial() + 0.5);
OpenGLColour colour = convertMaterialIDToColour(material);

View File

@ -83,7 +83,7 @@ OpenGLSurfaceMesh BuildOpenGLSurfaceMesh(const SurfaceMesh<PositionMaterialNorma
*ptr = vertex.getNormal().getZ();
ptr++;
uint8_t material = vertex.getMaterial() + 0.5;
uint8_t material = static_cast<uint8_t>(vertex.getMaterial() + 0.5);
OpenGLColour colour = convertMaterialIDToColour(material);