[PATCH 3/3] d3d10core/tests: Viewport properties are integers.

Stefan Dösinger stefandoesinger at gmx.at
Sun Jan 10 05:21:32 CST 2016


Shuts up an MSVC warning. Note that in d3d11 those members are FLOATs.

Signed-off-by: Stefan Dösinger <stefandoesinger at gmx.at>
---
 dlls/d3d10core/tests/device.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c
index 464acd0..539ded8 100644
--- a/dlls/d3d10core/tests/device.c
+++ b/dlls/d3d10core/tests/device.c
@@ -3584,10 +3584,10 @@ static void test_texture(void)
     ID3D10Device_VSSetShader(device, vs);
     ID3D10Device_PSSetConstantBuffers(device, 0, 1, &cb);
 
-    vp.TopLeftX = 0.0f;
-    vp.TopLeftY = 0.0f;
-    vp.Width = 640.0f;
-    vp.Height = 480.0f;
+    vp.TopLeftX = 0;
+    vp.TopLeftY = 0;
+    vp.Width = 640;
+    vp.Height = 480;
     vp.MinDepth = 0.0f;
     vp.MaxDepth = 1.0f;
     ID3D10Device_RSSetViewports(device, 1, &vp);
-- 
2.4.10




More information about the wine-patches mailing list