Commit 7bb0d2d4 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Remove stateblock handling from wined3d_device_set_sampler().

parent 8e70ce08
......@@ -2337,15 +2337,14 @@ static void wined3d_device_set_sampler(struct wined3d_device *device,
return;
}
prev = device->update_state->sampler[type][idx];
prev = device->state.sampler[type][idx];
if (sampler == prev)
return;
if (sampler)
wined3d_sampler_incref(sampler);
device->update_state->sampler[type][idx] = sampler;
if (!device->recording)
wined3d_cs_emit_set_sampler(device->cs, type, idx, sampler);
device->state.sampler[type][idx] = sampler;
wined3d_cs_emit_set_sampler(device->cs, type, idx, sampler);
if (prev)
wined3d_sampler_decref(prev);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment