Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/draw.cc4
1 files changed, 2 insertions, 2 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;