mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 06:33:42 +00:00
[drape] Fix sqrt constexpr
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -198,7 +198,7 @@ private:
|
||||
void CreateRoundCap(glsl::vec2 const & pos)
|
||||
{
|
||||
// Here we use an equilateral triangle to render circle (incircle of a triangle).
|
||||
static float constexpr kSqrt3 = sqrt(3.0f);
|
||||
static float constexpr kSqrt3 = 1.732050808f;
|
||||
float const radius = GetHalfWidth();
|
||||
|
||||
m_capGeometry.emplace_back(CapVertex::TPosition(pos, m_params.m_depth),
|
||||
|
||||
Reference in New Issue
Block a user