mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
d3d1x: save to correct slot in xs_set_constant_buffers
This commit is contained in:
parent
974412d7b9
commit
55592d9da1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue