Fix extract_3f_xyw().
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 30 Jan 2004 11:16:12 +0000 (11:16 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 30 Jan 2004 11:16:12 +0000 (11:16 +0000)
src/mesa/tnl/t_vertex.c

index 8f41c788746588dbde17ad9ac558f4ccc180f562..87931aae62fece49e050f940c503f6535594cf51 100644 (file)
@@ -484,8 +484,8 @@ static void extract_3f_xyw( const struct tnl_clipspace_attr *a, GLfloat *out, co
    
    out[0] = in[0];
    out[1] = in[1];
-   out[2] = in[3];
-   out[3] = 1;
+   out[2] = 0;
+   out[3] = in[2];
 }