diff options
author | Marcin Slusarz <[email protected]> | 2011-06-05 21:00:28 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-06-06 11:20:54 +0200 |
commit | fb40f1f532b5ea9fb9069f81af9e80835c18b3de (patch) | |
tree | fd28177c0793bbb156a66fb2bbc8ebea31477bf5 /src/gallium/drivers | |
parent | 5d35343d12ab462100c9eec50a579b73463e465a (diff) |
nv50: fix nv50_sampler_state_delete array overflow
num_samplers is array of 3 elements, not 5
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state.c b/src/gallium/drivers/nv50/nv50_state.c index 8d75dd07c4d..fb125f3a8d8 100644 --- a/src/gallium/drivers/nv50/nv50_state.c +++ b/src/gallium/drivers/nv50/nv50_state.c @@ -508,7 +508,7 @@ nv50_sampler_state_delete(struct pipe_context *pipe, void *hwcso) { unsigned s, i; - for (s = 0; s < 5; ++s) + for (s = 0; s < 3; ++s) for (i = 0; i < nv50_context(pipe)->num_samplers[s]; ++i) if (nv50_context(pipe)->samplers[s][i] == hwcso) nv50_context(pipe)->samplers[s][i] = NULL; |