Merge branch 'mesa_7_7_branch'
[mesa.git] / src / mesa / state_tracker / st_program.c
index 5c81a033f9ce71101c1c39b02169d3876894d19b..d91ed6806dcc11f7ece5133808861e8a07d4a307 100644 (file)
@@ -102,6 +102,8 @@ st_prepare_vertex_program(struct st_context *st,
    if (stvp->Base.IsPositionInvariant)
       _mesa_insert_mvp_code(st->ctx, &stvp->Base);
 
+   assert(stvp->Base.Base.NumInstructions > 1);
+
    /*
     * Determine number of inputs, the mappings between VERT_ATTRIB_x
     * and TGSI generic input indexes, plus input attrib semantic info.