projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7a049
)
mesa: use Elements() for loop limit
author
Brian Paul
<brianp@vmware.com>
Fri, 22 May 2009 20:32:45 +0000
(14:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 22 May 2009 20:32:45 +0000
(14:32 -0600)
src/mesa/state_tracker/st_cb_rasterpos.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_rasterpos.c
b/src/mesa/state_tracker/st_cb_rasterpos.c
index 7dd235273998705eac5e3c00402cf3e34829ba1b..7a9c50b3fc26559fa85208c1b4fd4d7a2bc677dd 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/
src/mesa/state_tracker/st_cb_rasterpos.c
@@
-194,7
+194,7
@@
new_draw_rastpos_stage(GLcontext *ctx, struct draw_context *draw)
rs->stage.destroy = rastpos_destroy;
rs->ctx = ctx;
- for (i = 0; i <
VERT_ATTRIB_MAX
; i++) {
+ for (i = 0; i <
Elements(rs->array)
; i++) {
rs->array[i].Size = 4;
rs->array[i].Type = GL_FLOAT;
rs->array[i].Stride = 0;