diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/svga/svga_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c index aa096692888..1881dbd6310 100644 --- a/src/gallium/drivers/svga/svga_draw.c +++ b/src/gallium/drivers/svga/svga_draw.c @@ -280,7 +280,7 @@ enum pipe_error svga_hwtnl_prim( struct svga_hwtnl *hwtnl, if (index_bias >= 0) { assert(offset + index_bias*stride < size); } - if (min_index != ~0) { + if (min_index != ~0 && index_bias >= 0) { assert(offset + (index_bias + min_index) * stride < size); } |