progs/redbook: Fix array out-of-bounds access.
authorVinson Lee <vlee@vmware.com>
Thu, 18 Feb 2010 09:17:26 +0000 (01:17 -0800)
committerVinson Lee <vlee@vmware.com>
Thu, 18 Feb 2010 09:17:26 +0000 (01:17 -0800)
progs/redbook/combiner.c

index 92e4de484ad4a9098d506087ff4491f606dad448..7682e0c0324d839b4d2ec4d9e7531bf93d0ec7f0 100644 (file)
@@ -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);