mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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>
This commit is contained in:
parent
1c78515d93
commit
664ba9ccc9
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue