summaryrefslogtreecommitdiffstats
path: root/progs/demos/fslight.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/demos/fslight.c')
-rw-r--r--progs/demos/fslight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/demos/fslight.c b/progs/demos/fslight.c
index 493ce0e90f1..e6d83bf8fb3 100644
--- a/progs/demos/fslight.c
+++ b/progs/demos/fslight.c
@@ -58,7 +58,7 @@ static GLfloat xRot = 90.0f, yRot = 0.0f;
static void
normalize(GLfloat *dst, const GLfloat *src)
{
- GLfloat len = sqrtf(src[0] * src[0] + src[1] * src[1] + src[2] * src[2]);
+ GLfloat len = sqrt(src[0] * src[0] + src[1] * src[1] + src[2] * src[2]);
dst[0] = src[0] / len;
dst[1] = src[1] / len;
dst[2] = src[2] / len;