aboutsummaryrefslogtreecommitdiff
path: root/pugl_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-15 11:53:27 +0200
committerDavid Robillard <d@drobilla.net>2018-09-15 11:53:27 +0200
commit6b488fa9dd17e8e7e4ca9e9a86677d91d049406a (patch)
tree415742d9c7ac624b90a5e99c3cb1b17f79e624e8 /pugl_test.c
parentbefca854f84b1ebf730dd45b5e63a7928039b32d (diff)
Fix minor clang-tidy warnings
Diffstat (limited to 'pugl_test.c')
-rw-r--r--pugl_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl_test.c b/pugl_test.c
index b0ea04d..fc3d921 100644
--- a/pugl_test.c
+++ b/pugl_test.c
@@ -85,7 +85,7 @@ static const float cubeVertices[] = {
static void
perspective(float* m, float fov, float aspect, float zNear, float zFar)
{
- const float h = tan(fov);
+ const float h = tanf(fov);
const float w = h / aspect;
const float depth = zNear - zFar;
const float q = (zFar + zNear) / depth;