OSDN Git Service
(root)
/
android-x86
/
external-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
aa09669
..
1881dbd
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);
}