projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a32e7c4
)
mesa: use Elements() instead of MAX_TEXTURE_COORD_UNITS
author
Brian Paul
<brianp@vmware.com>
Wed, 3 Feb 2010 20:21:42 +0000
(13:21 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 3 Feb 2010 22:48:42 +0000
(15:48 -0700)
src/mesa/main/points.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/points.c
b/src/mesa/main/points.c
index e743a2e6bdb9c17c4181864d9bf626460ef42849..eab9d13d6d9ca26b04f322a8831af555f10a43b2 100644
(file)
--- a/
src/mesa/main/points.c
+++ b/
src/mesa/main/points.c
@@
-266,7
+266,7
@@
_mesa_init_point(GLcontext *ctx)
ctx->Point.PointSprite = GL_FALSE; /* GL_ARB/NV_point_sprite */
ctx->Point.SpriteRMode = GL_ZERO; /* GL_NV_point_sprite (only!) */
ctx->Point.SpriteOrigin = GL_UPPER_LEFT; /* GL_ARB_point_sprite */
- for (i = 0; i <
MAX_TEXTURE_COORD_UNITS
; i++) {
+ for (i = 0; i <
Elements(ctx->Point.CoordReplace)
; i++) {
ctx->Point.CoordReplace[i] = GL_FALSE; /* GL_ARB/NV_point_sprite */
}
}