Module: wine Branch: master Commit: 2c82c707daf4ad7db4dbdf3d58d9f7834fb0e00a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2c82c707daf4ad7db4dbdf3d...
Author: Francois Gouget fgouget@free.fr Date: Fri Sep 29 13:06:42 2006 +0200
d3d9: Tweak a buffer declaration to fix the compilation with Visual C++.
---
dlls/d3d9/tests/stateblock.c | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/dlls/d3d9/tests/stateblock.c b/dlls/d3d9/tests/stateblock.c index 65a11e6..5da6d60 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;