ALL: Eliminate LOCAL_PI macro

This commit is contained in:
Pawel Kolodziejski 2020-09-23 23:20:23 +02:00
parent ada0dd648c
commit 27e12d8a96
22 changed files with 35 additions and 45 deletions

View file

@ -128,7 +128,7 @@ void BaseRenderOpenGL3D::setLightParameters(int index, const Math::Vector3d &pos
glLightf(GL_LIGHT0 + index, GL_SPOT_EXPONENT, 0.0f);
// wme sets the phi angle to 1.0 (in radians)
// so either 180/pi or (180/pi)/2 should give the same result
glLightf(GL_LIGHT0 + index, GL_SPOT_CUTOFF, (180.0f / M_PI));
glLightf(GL_LIGHT0 + index, GL_SPOT_CUTOFF, (180.0f / (float)M_PI));
} else {
glLightf(GL_LIGHT0 + index, GL_SPOT_CUTOFF, 180.0f);
}