Module: wine Branch: master Commit: 1168948764ebe0ecc9a22a3cd509b8525b195a61 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1168948764ebe0ecc9a22a3cd5...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Feb 28 11:26:50 2014 +0100
d3d9/tests: Get rid of "skip_once" in yuv_layout_test().
---
dlls/d3d9/tests/visual.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index e107471..4d921dc 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -10522,7 +10522,6 @@ static void yuv_layout_test(IDirect3DDevice9 *device) BYTE *buf, *chroma_buf, *u_buf, *v_buf; UINT width = 20, height = 16; D3DCAPS9 caps; - D3DFORMAT skip_once = D3DFMT_UNKNOWN; D3DSURFACE_DESC desc;
static const struct @@ -10582,21 +10581,13 @@ static void yuv_layout_test(IDirect3DDevice9 *device) if (IDirect3D9_CheckDeviceFormat(d3d, 0, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8, 0, D3DRTYPE_SURFACE, format) != D3D_OK) { - if (skip_once != format) - { - skip("%s is not supported.\n", fmt_string); - skip_once = format; - } + skip("%s is not supported.\n", fmt_string); continue; } if (FAILED(IDirect3D9_CheckDeviceFormatConversion(d3d, 0, D3DDEVTYPE_HAL, format, desc.Format))) { - if (skip_once != format) - { - skip("Driver cannot blit %s surfaces.\n", fmt_string); - skip_once = format; - } + skip("Driver cannot blit %s surfaces.\n", fmt_string); continue; }