summaryrefslogtreecommitdiffstats
path: root/openglscene.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2008-06-25 16:50:02 +0200
committerSamuel Rødal <sroedal@trolltech.com>2008-06-25 17:34:38 +0200
commit0d4112e01c674a5150e724ee7b49593299efbd9b (patch)
tree1acb55aa39750a6e5b88b5ad98226753aefbdc62 /openglscene.cpp
parent2fe663ef819430735fbadc7a03f9d8f0d630d236 (diff)
Some more cleanup.
Diffstat (limited to 'openglscene.cpp')
-rw-r--r--openglscene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/openglscene.cpp b/openglscene.cpp
index 51dcf88..bb69f31 100644
--- a/openglscene.cpp
+++ b/openglscene.cpp
@@ -166,7 +166,7 @@ void OpenGLScene::drawBackground(QPainter *painter, const QRectF &)
glPushMatrix();
glLoadIdentity();
- float pos[] = { m_lightPos, 5, 2, 0 };
+ const float pos[] = { m_lightPos, 5, 2, 0 };
glLightfv(GL_LIGHT0, GL_POSITION, pos);
glColor4f(m_modelColor.redF(), m_modelColor.greenF(), m_modelColor.blueF(), 1.0f);