Commit fd578240 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

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