[PATCH v2 3/6] d3dx9/tests: Add test for D3DXFillVolumeTexture() with default pool texture.
Matteo Bruni
mbruni at codeweavers.com
Mon Jan 14 14:45:10 CST 2019
From: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/d3dx9_36/tests/texture.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dx9_36/tests/texture.c b/dlls/d3dx9_36/tests/texture.c
index 1a92a85b63e..6c25a158118 100644
--- a/dlls/d3dx9_36/tests/texture.c
+++ b/dlls/d3dx9_36/tests/texture.c
@@ -1423,8 +1423,14 @@ static void test_D3DXFillVolumeTexture(IDirect3DDevice9 *device)
size = 4;
hr = IDirect3DDevice9_CreateVolumeTexture(device, size, size, size, 0, 0, D3DFMT_A8R8G8B8,
- D3DPOOL_MANAGED, &tex, NULL);
+ D3DPOOL_DEFAULT, &tex, NULL);
+ ok(hr == D3D_OK, "Unexpected hr %#x.\n", hr);
+ hr = D3DXFillVolumeTexture(tex, fillfunc_volume, NULL);
+ ok(hr == D3DERR_INVALIDCALL, "Unexpected hr %#x.\n", hr);
+ IDirect3DVolumeTexture9_Release(tex);
+ hr = IDirect3DDevice9_CreateVolumeTexture(device, size, size, size, 0, 0, D3DFMT_A8R8G8B8,
+ D3DPOOL_MANAGED, &tex, NULL);
if (SUCCEEDED(hr))
{
hr = D3DXFillVolumeTexture(tex, fillfunc_volume, NULL);
--
2.19.2
More information about the wine-devel
mailing list