Skip to content

Commit 2157235

Browse files
author
kevyuu
committed
Remove reciprocal_approxim usage
1 parent 1964b27 commit 2157235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/asset/utils/CGeometryCreator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ core::smart_refctd_ptr<ICPUPolygonGeometry> CGeometryCreator::createCylinder(
562562
}
563563
}
564564

565-
const float tesselationRec = core::reciprocal_approxim<float>(static_cast<float>(tesselation));
565+
const float tesselationRec = 1.f / static_cast<float>(tesselation);
566566
const float step = 2.f * core::PI<float>() * tesselationRec;
567567
for (uint32_t i = 0u; i < tesselation; ++i)
568568
{

0 commit comments

Comments
 (0)