[PATCH 4/5] d3d11: Avoid magic number in d3d10_device_SOSetTargets().

Józef Kucia jkucia at codeweavers.com
Wed Mar 22 03:40:56 CDT 2017


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 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 c641ccf..b0b4045 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -3706,7 +3706,7 @@ static void STDMETHODCALLTYPE d3d10_device_SOSetTargets(ID3D10Device1 *iface,
 
     TRACE("iface %p, target_count %u, targets %p, offsets %p.\n", iface, target_count, targets, offsets);
 
-    count = min(target_count, 4);
+    count = min(target_count, D3D10_SO_BUFFER_SLOT_COUNT);
     wined3d_mutex_lock();
     for (i = 0; i < count; ++i)
     {
-- 
2.10.2




More information about the wine-patches mailing list