summaryrefslogtreecommitdiffstats
path: root/src/graphics/opengl/gldevice.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-10-05 23:27:26 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-10-05 23:27:26 +0200
commitfbe19c49c5965577856f7c4b40581a796275817e (patch)
tree4ce09bfba8c7a83839d6fe3583a88d0bb1a4fc76 /src/graphics/opengl/gldevice.cpp
parentb68c903747ebe54955e8141fc1d56091839c8fee (diff)
parent0c6b6fccd9a58be3301ddaaface5b48078a4d9fb (diff)
downloadcolobot-fbe19c49c5965577856f7c4b40581a796275817e.tar.gz
colobot-fbe19c49c5965577856f7c4b40581a796275817e.tar.bz2
colobot-fbe19c49c5965577856f7c4b40581a796275817e.zip
Merge branch 'dev-graphics' into dev
Diffstat (limited to 'src/graphics/opengl/gldevice.cpp')
-rw-r--r--src/graphics/opengl/gldevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/opengl/gldevice.cpp b/src/graphics/opengl/gldevice.cpp
index dbf91c7..7bfd843 100644
--- a/src/graphics/opengl/gldevice.cpp
+++ b/src/graphics/opengl/gldevice.cpp
@@ -305,7 +305,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