Commit a small nitpick
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Tue, 7 Nov 2006 17:37:22 +0000 (17:37 +0000)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Tue, 7 Nov 2006 17:37:22 +0000 (17:37 +0000)
src/mesa/drivers/dri/nouveau/nv10_swtcl.c

index 79ee29cfa565a1b4d35b2457a3627514c6cf704a..510704f7d45d9132406d684117f885b267043c5b 100644 (file)
@@ -664,7 +664,7 @@ static inline void nv10OutputVertexFormat(struct nouveau_context* nmesa, GLuint
                if (index&(1<<i))
                {
                        slots=i+1;
-                       if (i==0)
+                       if (i==_TNL_ATTRIB_POS)
                        {
                                /* special-case POS */
                                EMIT_ATTR(_TNL_ATTRIB_POS,EMIT_3F_VIEWPORT);