From: Brian Paul Date: Thu, 13 Aug 2009 18:42:52 +0000 (-0600) Subject: tnl: if NAN_CHECK is enabled, also assert that pos.x != 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53dfd5d87074cefb9258fbe4dbc916fd18597116;p=mesa.git tnl: if NAN_CHECK is enabled, also assert that pos.x != 0 --- diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c index 66c5e13729c..dc954bcba14 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],