OSDN Git Service

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 8f41c78..87931aa 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];
 }