projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8091aa8
)
mesa: use Elements() for loop limit
author
Brian Paul
<brianp@vmware.com>
Fri, 22 May 2009 20:32:37 +0000
(14:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 22 May 2009 20:32:37 +0000
(14:32 -0600)
src/mesa/main/context.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/context.c
b/src/mesa/main/context.c
index 5e0f2d7b1bdc29b8150227e480ebe2f454d97efb..ff9dd488c7461265d98ff90120b5d31d0913ae2c 100644
(file)
--- a/
src/mesa/main/context.c
+++ b/
src/mesa/main/context.c
@@
-455,7
+455,7
@@
_mesa_init_current(GLcontext *ctx)
GLuint i;
/* Init all to (0,0,0,1) */
- for (i = 0; i <
VERT_ATTRIB_MAX
; i++) {
+ for (i = 0; i <
Elements(ctx->Current.Attrib)
; i++) {
ASSIGN_4V( ctx->Current.Attrib[i], 0.0, 0.0, 0.0, 1.0 );
}