gallium: fix an assertion
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 19 Aug 2008 23:04:48 +0000 (17:04 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 19 Aug 2008 23:04:48 +0000 (17:04 -0600)
src/gallium/auxiliary/draw/draw_vs_varient.c

index ad0b829afa1d0ca8b1229c33778d9d752c3a500b..994ce3e8896f701d4da8bcbb3b4216079f2fa738 100644 (file)
@@ -298,7 +298,7 @@ struct draw_vs_varient *draw_vs_varient_generic( struct draw_vertex_shader *vs,
          emit.element[i].input_offset = key->element[i].out.vs_output * 4 * sizeof(float);
          emit.element[i].output_format = draw_translate_vinfo_format(key->element[i].out.format);
          emit.element[i].output_offset = key->element[i].out.offset;
-         assert(emit.element[i].input_offset < fetch.output_stride);
+         assert(emit.element[i].input_offset <= fetch.output_stride);
       }
       else {
          emit.element[i].input_format = PIPE_FORMAT_R32_FLOAT;