diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c index 6d230ee3766..5ae305d3235 100644 --- a/dlls/d3d11/device.c +++ b/dlls/d3d11/device.c @@ -3738,7 +3738,7 @@ static void STDMETHODCALLTYPE d3d10_device_SOSetTargets(ID3D10Device1 *iface, buffer ? buffer->wined3d_buffer : NULL, offsets[i]); } - for (i = count; i < 4; ++i) + for (i = count; i < D3D10_SO_BUFFER_SLOT_COUNT; ++i) { wined3d_device_set_stream_output(device->wined3d_device, i, NULL, 0); }