d3d9/tests: Fix compilation with Visual C++ 2005.

This commit is contained in:
Francois Gouget 2007-05-27 13:25:46 +02:00 committed by Alexandre Julliard
parent 29a4a9c849
commit fd578240f2

View file

@ -693,8 +693,10 @@ static void fog_with_shader_test(IDirect3DDevice9 *device)
{
HRESULT hr;
DWORD color;
/* NOTE: changing these values will not effect the tests with foggy vertex shader, as the values are hardcoded in the shader*/
union {float f; DWORD i;} start={.f=0.9}, end={.f=0.1};
union {
float f;
DWORD i;
} start, end;
unsigned int i, j;
/* basic vertex shader without fog computation ("non foggy") */
@ -828,6 +830,10 @@ static void fog_with_shader_test(IDirect3DDevice9 *device)
};
/* NOTE: changing these values will not affect the tests with foggy vertex shader, as the values are hardcoded in the shader*/
start.f=0.9;
end.f=0.1;
hr = IDirect3DDevice9_CreateVertexShader(device, vertex_shader_code1, &vertex_shader[1]);
ok(SUCCEEDED(hr), "CreateVertexShader failed (%08x)\n", hr);
hr = IDirect3DDevice9_CreateVertexShader(device, vertex_shader_code2, &vertex_shader[2]);