[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14294] trunk/blender/source/blender/imbuf /intern/dds/DirectDrawSurface.cpp: I let a sqrtf in by accident when commiting this patch.
Kent Mein
mein at cs.umn.edu
Mon Mar 31 19:01:09 CEST 2008
Revision: 14294
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14294
Author: sirdude
Date: 2008-03-31 19:01:08 +0200 (Mon, 31 Mar 2008)
Log Message:
-----------
I let a sqrtf in by accident when commiting this patch.
converted to sqrt for solaris and other platforms.
Kent
Modified Paths:
--------------
trunk/blender/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
Modified: trunk/blender/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
===================================================================
--- trunk/blender/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp 2008-03-31 14:57:09 UTC (rev 14293)
+++ trunk/blender/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp 2008-03-31 17:01:08 UTC (rev 14294)
@@ -770,7 +770,7 @@
float nx = 2 * (x / 255.0f) - 1;
float ny = 2 * (y / 255.0f) - 1;
float nz = 0.0f;
- if (1 - nx*nx - ny*ny > 0) nz = sqrtf(1 - nx*nx - ny*ny);
+ if (1 - nx*nx - ny*ny > 0) nz = sqrt(1 - nx*nx - ny*ny);
uint8 z = clamp(int(255.0f * (nz + 1) / 2.0f), 0, 255);
return Color32(x, y, z);
More information about the Bf-blender-cvs
mailing list