mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
st/vega: Fix OpenVG demo segfaults.
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.
This commit is contained in:
parent
661b416e07
commit
ee6fbf8d2f
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue