st/mesa: change instruction count assertion to > 0
authorBrian Paul <brianp@vmware.com>
Mon, 18 Jan 2010 18:26:55 +0000 (11:26 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 18 Jan 2010 18:26:57 +0000 (11:26 -0700)
Shaders should at least have an END instruction.

src/mesa/state_tracker/st_atom_shader.c

index 9fad58a489c9e5ac38c822b649a13a9e268f79fe..4c106eb89b0bff180014946737c36bc34559ed82 100644 (file)
@@ -146,7 +146,7 @@ find_translated_vp(struct st_context *st,
 
       stfp->num_input_slots = numIn;
 
-      assert(stfp->Base.Base.NumInstructions > 1);
+      assert(stfp->Base.Base.NumInstructions > 0);
 
       st_translate_fragment_program(st, stfp, stfp->input_to_slot);
    }