fix array index error in _swsetup_Translate (Felix)
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 21 Mar 2004 16:12:13 +0000 (16:12 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 21 Mar 2004 16:12:13 +0000 (16:12 +0000)
src/mesa/swrast_setup/ss_context.c

index cc30d5a93f55afec65cf45ef047c57883bd22fad..c63646ca9772dff8ae0958d1d9c47fa0243727de 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Mesa 3-D graphics library
- * Version:  6.0.1
+ * Version:  6.1
  *
  * Copyright (C) 1999-2004  Brian Paul   All Rights Reserved.
  *
@@ -225,7 +225,7 @@ _swsetup_Translate( GLcontext *ctx, const void *vertex, SWvertex *dest )
 
    dest->win[0] = m[0]  * tmp[0] + m[12];
    dest->win[1] = m[5]  * tmp[1] + m[13];
-   dest->win[2] = m[10] * tmp[2] + m[15];
+   dest->win[2] = m[10] * tmp[2] + m[14];
    dest->win[3] =         tmp[3];