d3d9: Tweak a buffer declaration to fix the compilation with Visual C++.

This commit is contained in:
Francois Gouget 2006-09-29 13:06:42 +02:00 committed by Alexandre Julliard
parent 9197f5c3df
commit 2c82c707da
1 changed files with 5 additions and 8 deletions

View File

@ -1303,18 +1303,15 @@ static void test_state_management(
1 for transforms 1 for transforms
1 for render states 1 for render states
*/ */
const int max_tests = 2 + 1 + 1 + 1; state_test tests[2 + 1 + 1 + 1];
const int max_buffer = SHADER_CONSTANTS_REQ_BUFFER * 2 + BYTE buffer[SHADER_CONSTANTS_REQ_BUFFER * 2 +
LIGHTS_REQ_BUFFER + LIGHTS_REQ_BUFFER +
TRANSFORMS_REQ_BUFFER + TRANSFORMS_REQ_BUFFER +
RENDER_STATES_REQ_BUFFER; RENDER_STATES_REQ_BUFFER];
unsigned int tcount = 0; unsigned int tcount = 0;
unsigned int bcount = 0; unsigned int bcount = 0;
state_test tests[max_tests];
BYTE buffer[max_buffer];
hret = IDirect3DDevice9_GetDeviceCaps(device, &caps); hret = IDirect3DDevice9_GetDeviceCaps(device, &caps);
ok(hret == D3D_OK, "GetDeviceCaps returned %#lx.\n", hret); ok(hret == D3D_OK, "GetDeviceCaps returned %#lx.\n", hret);
if (hret != D3D_OK) return; if (hret != D3D_OK) return;