diff options
author | marha <marha@users.sourceforge.net> | 2012-09-04 15:26:24 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-09-04 15:26:24 +0200 |
commit | 67c4614f29188e4af86e1d88ee82759c896b70b5 (patch) | |
tree | d4f1c1d515dae1ead88d52d9c20369d8141de2f8 /mesalib/src/mesa/swrast/s_span.c | |
parent | b86e8562b1ddca2a8bc29f22a79451a041bf5293 (diff) | |
download | vcxsrv-67c4614f29188e4af86e1d88ee82759c896b70b5.tar.gz vcxsrv-67c4614f29188e4af86e1d88ee82759c896b70b5.tar.bz2 vcxsrv-67c4614f29188e4af86e1d88ee82759c896b70b5.zip |
mesa git update 4 sep 2012
Diffstat (limited to 'mesalib/src/mesa/swrast/s_span.c')
-rw-r--r-- | mesalib/src/mesa/swrast/s_span.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesalib/src/mesa/swrast/s_span.c b/mesalib/src/mesa/swrast/s_span.c index ef51479fd..ff653a622 100644 --- a/mesalib/src/mesa/swrast/s_span.c +++ b/mesalib/src/mesa/swrast/s_span.c @@ -419,8 +419,8 @@ _swrast_compute_lambda(GLfloat dsdx, GLfloat dsdy, GLfloat dtdx, GLfloat dtdy, GLfloat dvdx = texH * ((t + dtdx) / (q + dqdx) - t * invQ); GLfloat dudy = texW * ((s + dsdy) / (q + dqdy) - s * invQ); GLfloat dvdy = texH * ((t + dtdy) / (q + dqdy) - t * invQ); - GLfloat x = SQRTF(dudx * dudx + dvdx * dvdx); - GLfloat y = SQRTF(dudy * dudy + dvdy * dvdy); + GLfloat x = sqrtf(dudx * dudx + dvdx * dvdx); + GLfloat y = sqrtf(dudy * dudy + dvdy * dvdy); GLfloat rho = MAX2(x, y); GLfloat lambda = LOG2(rho); return lambda; |