From 2c82c707daf4ad7db4dbdf3d58d9f7834fb0e00a Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 29 Sep 2006 13:06:42 +0200 Subject: [PATCH] d3d9: Tweak a buffer declaration to fix the compilation with Visual C++. --- dlls/d3d9/tests/stateblock.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/dlls/d3d9/tests/stateblock.c b/dlls/d3d9/tests/stateblock.c index 65a11e6917..5da6d60f1c 100644 --- a/dlls/d3d9/tests/stateblock.c +++ b/dlls/d3d9/tests/stateblock.c @@ -1303,18 +1303,15 @@ static void test_state_management( 1 for transforms 1 for render states */ - const int max_tests = 2 + 1 + 1 + 1; - const int max_buffer = SHADER_CONSTANTS_REQ_BUFFER * 2 + - LIGHTS_REQ_BUFFER + - TRANSFORMS_REQ_BUFFER + - RENDER_STATES_REQ_BUFFER; + state_test tests[2 + 1 + 1 + 1]; + BYTE buffer[SHADER_CONSTANTS_REQ_BUFFER * 2 + + LIGHTS_REQ_BUFFER + + TRANSFORMS_REQ_BUFFER + + RENDER_STATES_REQ_BUFFER]; unsigned int tcount = 0; unsigned int bcount = 0; - state_test tests[max_tests]; - BYTE buffer[max_buffer]; - hret = IDirect3DDevice9_GetDeviceCaps(device, &caps); ok(hret == D3D_OK, "GetDeviceCaps returned %#lx.\n", hret); if (hret != D3D_OK) return;