Use the 'to' vector to determine the loop count.
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 7 Jan 2005 15:26:02 +0000 (15:26 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 7 Jan 2005 15:26:02 +0000 (15:26 +0000)
src/mesa/math/m_copy_tmp.h

index a9e33511ee238be63ca1736de7c6747c7ff55711..07ab1f7b2aa4f121a54e2d848c48179f95b463ed 100644 (file)
@@ -34,7 +34,7 @@ static void TAG2(copy, BITS)( GLvector4f *to, const GLvector4f *f )   \
    GLfloat (*t)[4] = (GLfloat (*)[4])to->start;                                \
    GLfloat *from = f->start;                                           \
    GLuint stride = f->stride;                                          \
-   GLuint count = f->count;                                            \
+   GLuint count = to->count;                                           \
    GLuint i;                                                           \
                                                                        \
    if (BITS)                                                           \