summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/math/m_copy_tmp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/math/m_copy_tmp.h b/src/mesa/math/m_copy_tmp.h
index a9e33511ee2..07ab1f7b2aa 100644
--- a/src/mesa/math/m_copy_tmp.h
+++ b/src/mesa/math/m_copy_tmp.h
@@ -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) \