summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-04-26 07:46:38 -0600
committerBrian <brian@yutani.localnet.net>2007-04-26 07:46:38 -0600
commit4a28548cbfa425edd8b8ad16c93869a9c612a42f (patch)
treeaaa5c1238a2adf72d8f1208c2c5cb0ffaaf56ea9
parent5814922d25fffb043b75ba8c1fd601e740e25ad7 (diff)
use sqrt(), not sqrtf() for Windows
-rw-r--r--progs/demos/arbfslight.c2
-rw-r--r--progs/demos/fslight.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/progs/demos/arbfslight.c b/progs/demos/arbfslight.c
index 374de568872..69575f06236 100644
--- a/progs/demos/arbfslight.c
+++ b/progs/demos/arbfslight.c
@@ -62,7 +62,7 @@ static PFNGLUNIFORM3FVARBPROC glUniform4fvARB = NULL;
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;
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;