i915g: Fix assert

Now that we support start, assert on start + num < max samplers

Reported by xexaxo
This commit is contained in:
Stephane Marchesin 2013-10-12 11:38:14 -07:00
parent 975c6ce605
commit 5ceeeb360e

View file

@ -300,7 +300,7 @@ i915_bind_vertex_sampler_states(struct pipe_context *pipe,
struct i915_context *i915 = i915_context(pipe);
unsigned i;
assert(num <= Elements(i915->vertex_samplers));
assert(start + num <= Elements(i915->vertex_samplers));
/* Check for no-op */
if (num == i915->num_vertex_samplers &&