diff options
author | Marcin Slusarz <[email protected]> | 2011-05-16 21:52:47 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-06-20 02:20:26 +0200 |
commit | fe20edf959c4ec565ef29f2556e03ce36e0c259f (patch) | |
tree | ffa971dcb14ea7f9949fdab62a9a85ba19f00707 /src/gallium/state_trackers | |
parent | 54d1b718b897742bf424f61f911e4ca8bbffa689 (diff) |
st/xorg: fix crash triggered by rendercheck -t composite -f a8r8g8b8 -o Src, Saturate
samplers[0] may remain uninititialized if src picture/pixmap is null
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_composite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_composite.c b/src/gallium/state_trackers/xorg/xorg_composite.c index b5dacd20bb5..f696b72e1e3 100644 --- a/src/gallium/state_trackers/xorg/xorg_composite.c +++ b/src/gallium/state_trackers/xorg/xorg_composite.c @@ -355,7 +355,7 @@ bind_samplers(struct exa_context *exa, int op, struct exa_pixmap_priv *pMask, struct exa_pixmap_priv *pDst) { - struct pipe_sampler_state *samplers[PIPE_MAX_SAMPLERS]; + struct pipe_sampler_state *samplers[PIPE_MAX_SAMPLERS] = {0}; struct pipe_sampler_state src_sampler, mask_sampler; struct pipe_sampler_view view_templ; struct pipe_sampler_view *src_view; |