mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
i915g: Fix assert
Now that we support start, assert on start + num < max samplers Reported by xexaxo
This commit is contained in:
parent
975c6ce605
commit
5ceeeb360e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue