Mesa (master): tnl: if NAN_CHECK is enabled, also assert that pos.x != 0
Brian Paul
brianp at kemper.freedesktop.org
Thu Aug 13 18:54:01 UTC 2009
Module: Mesa
Branch: master
Commit: 53dfd5d87074cefb9258fbe4dbc916fd18597116
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53dfd5d87074cefb9258fbe4dbc916fd18597116
Author: Brian Paul <brianp at vmware.com>
Date: Thu Aug 13 12:42:52 2009 -0600
tnl: if NAN_CHECK is enabled, also assert that pos.x != 0
---
src/mesa/tnl/t_vb_program.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c
index 66c5e13..dc954bc 100644
--- a/src/mesa/tnl/t_vb_program.c
+++ b/src/mesa/tnl/t_vb_program.c
@@ -386,6 +386,9 @@ run_vp( GLcontext *ctx, struct tnl_pipeline_stage *stage )
#endif
COPY_4V(store->results[attr].data[i], machine.Outputs[attr]);
}
+#ifdef NAN_CHECK
+ ASSERT(machine.Outputs[0][3] != 0.0F);
+#endif
#if 0
printf("HPOS: %f %f %f %f\n",
machine.Outputs[0][0],
More information about the mesa-commit
mailing list