mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
d3d9/tests: Fix compilation with Visual C++ 2005.
This commit is contained in:
parent
29a4a9c849
commit
fd578240f2
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user