mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 08:29:00 +02:00
- updated for better handling of streflop on different platforms
- attempt for bugfix on windows when socket send buffer is continuously full
This commit is contained in:
@@ -1173,11 +1173,11 @@ void Pixmap2D::splat(const Pixmap2D *leftUp, const Pixmap2D *rightUp, const Pixm
|
||||
|
||||
const float powFactor= 2.0f;
|
||||
#ifdef USE_STREFLOP
|
||||
distLu= streflop::pow(distLu, powFactor);
|
||||
distRu= streflop::pow(distRu, powFactor);
|
||||
distLd= streflop::pow(distLd, powFactor);
|
||||
distRd= streflop::pow(distRd, powFactor);
|
||||
avg= streflop::pow(avg, powFactor);
|
||||
distLu= streflop::pow(static_cast<streflop::Simple>(distLu), static_cast<streflop::Simple>(powFactor));
|
||||
distRu= streflop::pow(static_cast<streflop::Simple>(distRu), static_cast<streflop::Simple>(powFactor));
|
||||
distLd= streflop::pow(static_cast<streflop::Simple>(distLd), static_cast<streflop::Simple>(powFactor));
|
||||
distRd= streflop::pow(static_cast<streflop::Simple>(distRd), static_cast<streflop::Simple>(powFactor));
|
||||
avg= streflop::pow(static_cast<streflop::Simple>(avg), static_cast<streflop::Simple>(powFactor));
|
||||
#else
|
||||
distLu= pow(distLu, powFactor);
|
||||
distRu= pow(distRu, powFactor);
|
||||
|
Reference in New Issue
Block a user