draw: added Nan/Inf assertion in debug code
authorBrian Paul <brianp@vmware.com>
Tue, 31 Mar 2009 22:12:17 +0000 (16:12 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 31 Mar 2009 22:21:51 +0000 (16:21 -0600)
src/gallium/auxiliary/draw/draw_vs_exec.c

index b3200df8112ea3a36a0d50801254ef9191078655..dbbc33fffa72fce4d41e93ffbb75676ce0a96245 100644 (file)
@@ -151,6 +151,7 @@ vs_exec_run_linear( struct draw_vertex_shader *shader,
                         output[slot][1],
                         output[slot][2],
                         output[slot][3]);
+            assert(!util_is_inf_or_nan(output[slot][0]));
          }
 #endif