Commit 6bb73652 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Remove stateblock handling from wined3d_device_set_constant_buffer().

parent 8973c22a
......@@ -2247,15 +2247,14 @@ void CDECL wined3d_device_set_constant_buffer(struct wined3d_device *device,
return;
}
prev = device->update_state->cb[type][idx];
prev = device->state.cb[type][idx];
if (buffer == prev)
return;
if (buffer)
wined3d_buffer_incref(buffer);
device->update_state->cb[type][idx] = buffer;
if (!device->recording)
wined3d_cs_emit_set_constant_buffer(device->cs, type, idx, buffer);
device->state.cb[type][idx] = buffer;
wined3d_cs_emit_set_constant_buffer(device->cs, type, idx, buffer);
if (prev)
wined3d_buffer_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