assert that program length > 1 (some code, plus END)

This commit is contained in:
Brian
2007-10-02 16:57:19 -06:00
parent ae28d19bbf
commit ca34912bf7
+3
View File
@@ -172,6 +172,8 @@ find_translated_vp(struct st_context *st,
stfp->num_input_slots = numIn;
assert(stfp->Base.Base.NumInstructions > 1);
(void) st_translate_fragment_program(st, stfp,
stfp->input_to_slot,
stfp->tokens,
@@ -235,6 +237,7 @@ find_translated_vp(struct st_context *st,
}
}
assert(stvp->Base.Base.NumInstructions > 1);
xvp->vs = st_translate_vertex_program(st, stvp,
xvp->output_to_slot,