Module: wine Branch: master Commit: 0146b5568a1ae171ef2c499c09fd717a2fa76922 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0146b5568a1ae171ef2c499c09...
Author: Józef Kucia joseph.kucia@gmail.com Date: Mon Oct 22 17:20:30 2012 +0200
d3dx9/tests: Add a simple test for filling compressed textures.
---
dlls/d3dx9_36/tests/texture.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
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,