Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/wined3d/device.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 4a94b1d6b1..1db6d77711 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2252,15 +2252,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); }