Józef Kucia : d3d11: Replace another magic number with D3D10_SO_BUFFER_SLOT_COUNT.
Module: wine Branch: master Commit: af3638af809ca97bdb513a908d51f3e769677220 URL: http://source.winehq.org/git/wine.git/?a=commit;h=af3638af809ca97bdb513a908d... Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Wed Mar 29 15:11:09 2017 +0200 d3d11: Replace another magic number with D3D10_SO_BUFFER_SLOT_COUNT. I missed this occurrence in a1ef2347b16e17f4a3ac8a1fcf1e5a5de4844e43. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3d11/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c index 6d230ee..5ae305d 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); }
participants (1)
-
Alexandre Julliard