projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a35fde
)
svga: skip assertion when index_bias < 0
author
Brian Paul
<brianp@vmware.com>
Mon, 20 Jun 2011 16:45:17 +0000
(10:45 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 22 Sep 2011 14:26:36 +0000
(08:26 -0600)
See bug 688383
src/gallium/drivers/svga/svga_draw.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_draw.c
b/src/gallium/drivers/svga/svga_draw.c
index aa0966928882c790a83436b85772fc40b53b889f..1881dbd63108145ad1064801d73a4139ef718246 100644
(file)
--- 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);
}