mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
swrast: fix incorrect texcoord attribute test
This commit is contained in:
parent
23c0e812bc
commit
f7618f4f37
1 changed files with 3 additions and 3 deletions
|
|
@ -139,10 +139,10 @@ sprite_point(GLcontext *ctx, const SWvertex *vert)
|
|||
}
|
||||
|
||||
ATTRIB_LOOP_BEGIN
|
||||
if ((attr >= FRAG_ATTRIB_TEX0 && attr <= FRAG_ATTRIB_TEX7) ||
|
||||
attr >= FRAG_ATTRIB_VAR0) {
|
||||
if (attr >= FRAG_ATTRIB_TEX0 && attr <= FRAG_ATTRIB_TEX7) {
|
||||
/* a texcoord attribute */
|
||||
const GLuint u = attr - FRAG_ATTRIB_TEX0;
|
||||
/* a texcoord */
|
||||
ASSERT(u < Elements(ctx->Point.CoordReplace));
|
||||
if (ctx->Point.CoordReplace[u]) {
|
||||
tCoords[numTcoords++] = attr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue