Commit 49c22d61 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9: Properly initialize the viewport dimensions.

parent db9bd918
...@@ -794,7 +794,7 @@ static void test_reset(void) ...@@ -794,7 +794,7 @@ static void test_reset(void)
ok(vp.MaxZ == 1, "D3DVIEWPORT->MaxZ = %f\n", vp.MaxZ); ok(vp.MaxZ == 1, "D3DVIEWPORT->MaxZ = %f\n", vp.MaxZ);
} }
vp.X = 10; vp.X = 10;
vp.X = 20; vp.Y = 20;
vp.MinZ = 2; vp.MinZ = 2;
vp.MaxZ = 3; vp.MaxZ = 3;
hr = IDirect3DDevice9_SetViewport(pDevice, &vp); hr = IDirect3DDevice9_SetViewport(pDevice, &vp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment