suppress some warnings
This commit is contained in:
@@ -308,10 +308,10 @@ namespace OpenVulkano::Scene
|
||||
return result;
|
||||
}
|
||||
|
||||
Geometry GeometryFactory::MakeArchStrip(float radius, float width, float endRadius, int segments, const Math::Vector4f& color, float endVCoord, bool indexBuffer)
|
||||
Geometry GeometryFactory::MakeArchStrip(float radius, float width, float endRadius, uint32_t segments, const Math::Vector4f& color, float endVCoord, bool indexBuffer)
|
||||
{
|
||||
Geometry result;
|
||||
segments = std::max(2, segments);
|
||||
segments = std::max(2u, segments);
|
||||
result.Init(2 * segments, indexBuffer ? 6 * segments : 0);
|
||||
const float segmentAngle = endRadius / static_cast<float>(segments - 1);
|
||||
width /= 2;
|
||||
|
||||
Reference in New Issue
Block a user