summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-28 14:41:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-28 14:41:06 +0000
commitb3c98e6205c52616ea60e27f2b4537e24d8beac4 (patch)
treedf6beffe106a7ac7dd26bebc124b29183c83c37b /src/mesa
parentb5ee368baf6472a79d250f0be418200760f4b43d (diff)
Added assert that result != arg0 in do_RSW. This currently fails and needs fixing.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_vb_arbprogram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c
index 8b16835677..68499faafa 100644
--- a/src/mesa/tnl/t_vb_arbprogram.c
+++ b/src/mesa/tnl/t_vb_arbprogram.c
@@ -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)];