d3d1x: save to correct slot in xs_set_constant_buffers
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 25 Aug 2011 10:52:35 +0000 (12:52 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 25 Aug 2011 10:52:35 +0000 (12:52 +0200)
src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h

index 8e48d1883b1292e48ddfa7098189a2ac6b811a23..0a31cf10a340a712765089b1b7186ff48f959321 100644 (file)
@@ -352,9 +352,9 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe>
        {
                for(unsigned i = 0; i < count; ++i)
                {
-                       if(constbufs[i] != constant_buffers[s][i].p)
+                       if(constbufs[i] != constant_buffers[s][start + i].p)
                        {
-                               constant_buffers[s][i] = constbufs[i];
+                               constant_buffers[s][start + i] = constbufs[i];
                                if(s < caps.stages && start + i < caps.constant_buffers[s])
                                        pipe->set_constant_buffer(pipe, s, start + i, constbufs[i] ? constbufs[i]->resource : NULL);
                        }