tnl: if NAN_CHECK is enabled, also assert that pos.x != 0
authorBrian Paul <brianp@vmware.com>
Thu, 13 Aug 2009 18:42:52 +0000 (12:42 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Aug 2009 18:50:57 +0000 (12:50 -0600)
src/mesa/tnl/t_vb_program.c

index 66c5e13729c1c1dc0ebb42da7cfa54fca34dd508..dc954bcba148046f89f553360d30c411d677701c 100644 (file)
@@ -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],