double precision compilation fix

metadata
Wenzel Jakob 2012-10-13 19:59:12 -04:00
parent 88c179ab82
commit a6f17ff0a6
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ public:
std::min(std::max(0, (int) (sphCoords.azimuth * factor.x)), bitmap->getWidth()-1),
std::min(std::max(0, (int) (sphCoords.elevation * factor.y)), bitmap->getHeight()-1));
target[pos.x + pos.y * bitmap->getWidth()] += value / std::max(1e-3f, sinTheta);
target[pos.x + pos.y * bitmap->getWidth()] += value / std::max((Float) 1e-3f, sinTheta);
}
/* Instantiate a nested envmap plugin */

View File

@ -191,7 +191,7 @@ public:
std::min(std::max(0, (int) (sphCoords.azimuth * factor.x)), bitmap->getWidth()-1),
std::min(std::max(0, (int) (sphCoords.elevation * factor.y)), bitmap->getHeight()-1));
data[pos.x + pos.y * bitmap->getWidth()] += value / std::max(1e-3f, sinTheta);
data[pos.x + pos.y * bitmap->getWidth()] += value / std::max((Float) 1e-3f, sinTheta);
}
Log(EDebug, "Done (took %i ms)", timer->getMilliseconds());