[5/5] d3dx9/tests: Add a simple test for filling compressed textures.
Józef Kucia
joseph.kucia at gmail.com
Mon Oct 22 10:20:30 CDT 2012
---
dlls/d3dx9_36/tests/texture.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/dlls/d3dx9_36/tests/texture.c b/dlls/d3dx9_36/tests/texture.c
index ba3b2c7..87be95c 100644
--- a/dlls/d3dx9_36/tests/texture.c
+++ b/dlls/d3dx9_36/tests/texture.c
@@ -1135,6 +1135,20 @@ static void test_D3DXFillTexture(IDirect3DDevice9 *device)
}
else
skip("Failed to create D3DFMT_A32B32G32R32F texture\n");
+
+ /* test a compressed texture */
+ hr = IDirect3DDevice9_CreateTexture(device, 4, 4, 1, 0, D3DFMT_DXT1,
+ D3DPOOL_MANAGED, &tex, NULL);
+
+ if (SUCCEEDED(hr))
+ {
+ hr = D3DXFillTexture(tex, fillfunc, NULL);
+ todo_wine ok(hr == D3D_OK, "D3DXFillTexture returned %#x, expected %#x\n", hr, D3D_OK);
+
+ IDirect3DTexture9_Release(tex);
+ }
+ else
+ skip("Failed to create D3DFMT_DXT1 texture\n");
}
static void WINAPI fillfunc_cube(D3DXVECTOR4 *value, const D3DXVECTOR3 *texcoord,
--
1.7.12.4
More information about the wine-patches
mailing list