Commit 2c82c707 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent 9197f5c3
......@@ -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;
......
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