summaryrefslogtreecommitdiffstats
path: root/src/graphics/opengl/gldevice.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-10-03 00:29:59 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-10-03 00:29:59 +0200
commit858b1e35aed8b3a37f138138910327f7259d1251 (patch)
treef9dee07965757f7e2778965e47764c29e298b432 /src/graphics/opengl/gldevice.cpp
parent3f7f013168e62693601ab57108d329ffaa924439 (diff)
downloadcolobot-858b1e35aed8b3a37f138138910327f7259d1251.tar.gz
colobot-858b1e35aed8b3a37f138138910327f7259d1251.tar.bz2
colobot-858b1e35aed8b3a37f138138910327f7259d1251.zip
Spot light angle fix
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