summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-18 01:17:26 -0800
committerVinson Lee <vlee@vmware.com>2010-02-18 01:17:26 -0800
commit7f7b7b9a0207ae9e51f68e7f9ddc2834f4727fc9 (patch)
treef7f811f58b8ba646d337ecd34e9a715b9809ea83 /progs
parent37e955d491664d27b1335c60ee40b730af6a1515 (diff)
progs/redbook: Fix array out-of-bounds access.
Diffstat (limited to 'progs')
-rw-r--r--progs/redbook/combiner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/redbook/combiner.c b/progs/redbook/combiner.c
index 92e4de484a..7682e0c032 100644
--- a/progs/redbook/combiner.c
+++ b/progs/redbook/combiner.c
@@ -249,7 +249,7 @@ static void display(void)
glCallList(1);
glPopMatrix();
- constColor[4] = 0.8;
+ constColor[3] = 0.8;
glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, constColor);
glPushMatrix();
glTranslatef(4.0, 3.0, 0.0);