=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d10core/tests: Initialize buffer data in test_copy_subresource_region().

Alexandre Julliard julliard at winehq.org
Wed Nov 9 13:47:02 CST 2016


Module: wine
Branch: master
Commit: d78aa12da650dd2ed8f246c3fcf1d8aa0de471cc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d78aa12da650dd2ed8f246c3fcf1d8aa0de471cc

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Wed Nov  9 12:35:22 2016 +0100

d3d10core/tests: Initialize buffer data in test_copy_subresource_region().

This test fails randomly on Windows 10 with AMD GPU.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d10core/tests/device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c
index e617319..fc0745a 100644
--- a/dlls/d3d10core/tests/device.c
+++ b/dlls/d3d10core/tests/device.c
@@ -6859,7 +6859,8 @@ static void test_copy_subresource_region(void)
     ID3D10Device_PSSetSamplers(device, 0, 1, &sampler_state);
     ID3D10Device_PSSetShader(device, ps);
 
-    dst_buffer = create_buffer(device, D3D10_BIND_CONSTANT_BUFFER, sizeof(float_colors), NULL);
+    memset(float_colors, 0, sizeof(float_colors));
+    dst_buffer = create_buffer(device, D3D10_BIND_CONSTANT_BUFFER, sizeof(float_colors), float_colors);
 
     ID3D10Device_PSSetConstantBuffers(device, 0, 1, &dst_buffer);
 




More information about the wine-cvs mailing list