projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
661b416
)
st/vega: Fix OpenVG demo segfaults.
author
Chia-I Wu
<olv@lunarg.com>
Wed, 3 Mar 2010 15:51:13 +0000
(23:51 +0800)
committer
Chia-I Wu
<olv@lunarg.com>
Mon, 8 Mar 2010 03:29:25 +0000
(11:29 +0800)
When the paint is color, paint_bind_samplers binds a dummy sampler
without a texture. It causes demos requiring a sampler (those use a
mask or an image) to crash.
src/gallium/state_trackers/vega/paint.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vega/paint.c
b/src/gallium/state_trackers/vega/paint.c
index
caf0c14
..
cdb87d3
100644
(file)
--- a/
src/gallium/state_trackers/vega/paint.c
+++ b/
src/gallium/state_trackers/vega/paint.c
@@
-639,9
+639,6
@@
VGint paint_bind_samplers(struct vg_paint *paint, struct pipe_sampler_state **sa
}
break;
default:
- samplers[0] = &paint->pattern.sampler; /* dummy */
- textures[0] = 0;
- return 0;
break;
}
return 0;