diff options
author | Mathias Fröhlich <mathias.froehlich@web.de> | 2016-05-22 14:10:19 +0200 |
---|---|---|
committer | Mathias Fröhlich <mathias.froehlich@web.de> | 2016-06-16 05:50:52 +0200 |
commit | 664ba9ccc9180f390606b3f3cc56c4be4eb838e2 (patch) | |
tree | 537dfafbbffa317e28b0f37785046c543d971150 | |
parent | 1c78515d93994e529cb4fd8d009476c90c55365c (diff) |
swrast: Convert swrast to use CoordsReplaceBits.
Switch over to use the CoordsReplaceBits bitmask.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
-rw-r--r-- | src/mesa/swrast/s_points.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_points.c b/src/mesa/swrast/s_points.c index 3163b0407e..82128508de 100644 --- a/src/mesa/swrast/s_points.c +++ b/src/mesa/swrast/s_points.c @@ -139,8 +139,8 @@ sprite_point(struct gl_context *ctx, const SWvertex *vert) if (attr >= VARYING_SLOT_TEX0 && attr <= VARYING_SLOT_TEX7) { /* a texcoord attribute */ const GLuint u = attr - VARYING_SLOT_TEX0; - assert(u < ARRAY_SIZE(ctx->Point.CoordReplace)); - if (ctx->Point.CoordReplace[u]) { + assert(u < MAX_TEXTURE_COORD_UNITS); + if (ctx->Point.CoordReplaceBits & (1u << u)) { tCoords[numTcoords++] = attr; if (ctx->Point.SpriteRMode == GL_ZERO) |