Added assert that result != arg0 in do_RSW. This currently fails and needs fixing.
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 28 Oct 2005 14:41:06 +0000 (14:41 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 28 Oct 2005 14:41:06 +0000 (14:41 +0000)
src/mesa/tnl/t_vb_arbprogram.c

index 8b168356770697030b5908b257fba1be8aa570c5..68499faafa80e5e72909b84070c365f94cc4f197 100644 (file)
@@ -129,6 +129,8 @@ static void do_RSW( struct arb_vp_machine *m, union instruction op )
    GLuint swz = op.rsw.swz;
    GLuint neg = op.rsw.neg;
 
+   ASSERT(result != arg0);  /* this would be very bad */
+
    result[0] = arg0[GET_RSW(swz, 0)];
    result[1] = arg0[GET_RSW(swz, 1)];
    result[2] = arg0[GET_RSW(swz, 2)];