diff options
author | Zaba999 <qrwfw5rp> | 2012-10-11 23:10:07 +0200 |
---|---|---|
committer | Zaba999 <qrwfw5rp> | 2012-10-11 23:10:07 +0200 |
commit | 7575ffd49b76aaf4b054c0ca8cb8369fb12c11c9 (patch) | |
tree | 10915bce6a98c2b0848421dbb79b36ce52bb045b /src/graphics/opengl | |
parent | 8a932fed3e5700af283017deab3cb1da11cb0dce (diff) | |
parent | dfe21c5a9c2ebf3df0f445014588bcce0387d699 (diff) | |
download | colobot-7575ffd49b76aaf4b054c0ca8cb8369fb12c11c9.tar.gz colobot-7575ffd49b76aaf4b054c0ca8cb8369fb12c11c9.tar.bz2 colobot-7575ffd49b76aaf4b054c0ca8cb8369fb12c11c9.zip |
Merge branch 'dev' of https://github.com/colobot/colobot into dev
Diffstat (limited to 'src/graphics/opengl')
-rw-r--r-- | src/graphics/opengl/gldevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/opengl/gldevice.cpp b/src/graphics/opengl/gldevice.cpp index ee77420..94b0dbc 100644 --- a/src/graphics/opengl/gldevice.cpp +++ b/src/graphics/opengl/gldevice.cpp @@ -309,7 +309,7 @@ void CGLDevice::SetLight(int index, const Light &light) if (light.type == LIGHT_SPOT) { - glLightf(GL_LIGHT0 + index, GL_SPOT_CUTOFF, light.spotAngle); + glLightf(GL_LIGHT0 + index, GL_SPOT_CUTOFF, light.spotAngle * Math::RAD_TO_DEG); glLightf(GL_LIGHT0 + index, GL_SPOT_EXPONENT, light.spotIntensity); } else |