From: Vinson Lee Date: Thu, 18 Feb 2010 09:17:26 +0000 (-0800) Subject: progs/redbook: Fix array out-of-bounds access. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f7b7b9a0207ae9e51f68e7f9ddc2834f4727fc9;p=mesa.git progs/redbook: Fix array out-of-bounds access. --- diff --git a/progs/redbook/combiner.c b/progs/redbook/combiner.c index 92e4de484ad..7682e0c0324 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);