d3d1x: fix xs_set_samplers
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 28 May 2011 09:56:43 +0000 (11:56 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 25 Aug 2011 10:34:23 +0000 (12:34 +0200)
src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h

index aedf82a..8e48d18 100644 (file)
@@ -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);
                        }
                }
        }