Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvan Goers <mega@osirion.org>2012-01-24 08:41:23 +0000
committerEvan Goers <mega@osirion.org>2012-01-24 08:41:23 +0000
commitda3e0ad4e55f010fcd78a1cb10ba7fcbb1be57cb (patch)
treea3cd44fcfcaa9e41fb088c259fadf906a4b6771f /src
parent656c8b2fc03164d13352c067780037e87b98b9f2 (diff)
Fixed a stupid issue.
Diffstat (limited to 'src')
-rw-r--r--src/render/draw.cc4
-rwxr-xr-xsrc/ui/modelview.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index 5e3a3de..de08d1d 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -63,7 +63,7 @@ Globes globes_list;
void pass_reset_lights()
{
// reset light state
- for (size_t i = 0; i < (GL_LIGHT0 + 7); i++)
+ for (size_t i = 0; i < 8; i++)
gl::disable(GL_LIGHT0 + i);
}
@@ -117,7 +117,7 @@ void pass_prepare(float seconds)
// add level lights
if (globe->flag_is_set(core::Entity::Bright)) {
- 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)) {
zone_gllight = GL_LIGHT0 + i;
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;