d3d8/d3d9: Fix compiler warnings on non x86/x86_64.
This commit is contained in:
parent
f10c16072e
commit
b98c8ce556
|
@ -1970,6 +1970,7 @@ static inline WORD get_fpu_cw(void)
|
|||
|
||||
static void test_fpu_setup(void)
|
||||
{
|
||||
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
D3DPRESENT_PARAMETERS present_parameters;
|
||||
IDirect3DDevice8 *device;
|
||||
D3DDISPLAYMODE d3ddm;
|
||||
|
@ -2032,6 +2033,7 @@ static void test_fpu_setup(void)
|
|||
done:
|
||||
if (window) DestroyWindow(window);
|
||||
if (d3d8) IDirect3D8_Release(d3d8);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void test_ApplyStateBlock(void)
|
||||
|
@ -2121,9 +2123,7 @@ START_TEST(device)
|
|||
}
|
||||
IDirect3D8_Release(d3d8);
|
||||
|
||||
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
test_fpu_setup();
|
||||
#endif
|
||||
test_display_modes();
|
||||
test_shader_versions();
|
||||
test_swapchain();
|
||||
|
|
|
@ -2811,6 +2811,7 @@ static inline WORD get_fpu_cw(void)
|
|||
|
||||
static void test_fpu_setup(void)
|
||||
{
|
||||
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
D3DPRESENT_PARAMETERS present_parameters;
|
||||
IDirect3DDevice9 *device;
|
||||
HWND window = NULL;
|
||||
|
@ -2868,6 +2869,7 @@ static void test_fpu_setup(void)
|
|||
done:
|
||||
if (window) DestroyWindow(window);
|
||||
if (d3d9) IDirect3D9_Release(d3d9);
|
||||
#endif
|
||||
}
|
||||
|
||||
START_TEST(device)
|
||||
|
@ -2891,9 +2893,7 @@ START_TEST(device)
|
|||
}
|
||||
IDirect3D9_Release(d3d9);
|
||||
|
||||
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
test_fpu_setup();
|
||||
#endif
|
||||
test_multi_device();
|
||||
test_display_formats();
|
||||
test_display_modes();
|
||||
|
|
Loading…
Reference in New Issue