swr: fix assertion for max number of so targets

The number has to be less than or equal to the max, not just less than.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
Ilia Mirkin
2016-11-27 00:46:33 -05:00
parent 02b2efa5eb
commit 3d837a8871
+1 -1
View File
@@ -1570,7 +1570,7 @@ swr_set_so_targets(struct pipe_context *pipe,
struct swr_context *swr = swr_context(pipe);
uint32_t i;
assert(num_targets < MAX_SO_STREAMS);
assert(num_targets <= MAX_SO_STREAMS);
for (i = 0; i < num_targets; i++) {
pipe_so_target_reference(