This commit is contained in:
Branimir Karadžić 2016-02-25 22:41:28 -08:00
parent 07d310af12
commit 89a87a5f8d

View file

@ -784,7 +784,10 @@ struct DebugDraw
, _sphere.m_center[1]
, _sphere.m_center[2]
);
uint8_t lod = attrib.m_lod > Mesh::SphereMaxLod ? Mesh::SphereMaxLod : attrib.m_lod;
uint8_t lod = attrib.m_lod > Mesh::SphereMaxLod
? uint8_t(Mesh::SphereMaxLod)
: attrib.m_lod
;
draw(Mesh::Enum(Mesh::Sphere0 + lod), mtx, attrib.m_wireframe);
}