diff options
author | Brian Paul <[email protected]> | 2010-02-03 13:21:42 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-02-03 15:48:42 -0700 |
commit | 82a2d3564a98ba6dc34d170150edcaa0768f6427 (patch) | |
tree | ed6c4813b1c3afe1121d8d5c153584bba64a3824 /src/mesa/main/points.c | |
parent | a32e7c487cbae1a8521fa2d244763e2ec596af91 (diff) |
mesa: use Elements() instead of MAX_TEXTURE_COORD_UNITS
Diffstat (limited to 'src/mesa/main/points.c')
-rw-r--r-- | src/mesa/main/points.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c index e743a2e6bdb..eab9d13d6d9 100644 --- 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 */ } } |