summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-05-28 11:56:43 +0200
committerChristoph Bumiller <[email protected]>2011-08-25 12:34:23 +0200
commit974412d7b985f44c2d3a68f818d2723346a4512b (patch)
treebdff5fdae21d076133aebdce83a33a757f4e98ce /src/gallium/state_trackers
parent7b1972d7be8ed68676786288ac2d77b8d71d113d (diff)
d3d1x: fix xs_set_samplers
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
index aedf82a4381..8e48d1883b1 100644
--- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
+++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
@@ -391,11 +391,12 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe>
{
samplers[s][start + i] = samps[i];
sampler_csos[s].v[start + i] = samps[i] ? samps[i]->object : default_sampler;
+ last_different = i;
}
if(last_different >= 0)
{
num_samplers[s] = std::max(num_samplers[s], start + last_different + 1);
- update_flags |= (UPDATE_SAMPLERS_SHIFT + s);
+ update_flags |= 1 << (UPDATE_SAMPLERS_SHIFT + s);
}
}
}