From da3e0ad4e55f010fcd78a1cb10ba7fcbb1be57cb Mon Sep 17 00:00:00 2001 From: Evan Goers Date: Tue, 24 Jan 2012 08:41:23 +0000 Subject: Fixed a stupid issue. --- src/ui/modelview.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc index c36aa56..be56856 100755 --- a/src/ui/modelview.cc +++ b/src/ui/modelview.cc @@ -189,7 +189,7 @@ void ModelView::draw() glEnableClientState(GL_NORMAL_ARRAY); // we set up the light in camera space - for (size_t i = 0; i < (GL_LIGHT0 + 7); i++) { + for (size_t i = 0; i < 8; i++) { // check if a light is available if (!glIsEnabled(GL_LIGHT0 + i)) { modelview_gllight = GL_LIGHT0 + i; -- cgit v1.2.3