projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37e955d
)
progs/redbook: Fix array out-of-bounds access.
author
Vinson Lee
<vlee@vmware.com>
Thu, 18 Feb 2010 09:17:26 +0000
(
01:17
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 18 Feb 2010 09:17:26 +0000
(
01:17
-0800)
progs/redbook/combiner.c
patch
|
blob
|
history
diff --git
a/progs/redbook/combiner.c
b/progs/redbook/combiner.c
index 92e4de484ad4a9098d506087ff4491f606dad448..7682e0c0324d839b4d2ec4d9e7531bf93d0ec7f0 100644
(file)
--- 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);