Module: wine Branch: master Commit: ac85fa8d0f85c8b9fb6ca7b4be027d0ba5270100 URL: https://gitlab.winehq.org/wine/wine/-/commit/ac85fa8d0f85c8b9fb6ca7b4be027d0...
Author: Stefan Dösinger stefan@codeweavers.com Date: Thu Sep 7 19:32:36 2023 +0300
d3d9/tests: Request a 3 mip level cube texture in test_getdc().
If we let d3d9 decide we get a single-level texture on HW that does not support mipmapped cubes, e.g. r200 GPUs. By explicitly requesting the 3 levels we need we'll skip the test.
The test demonstrates that only one subresource can be locked / have a DC, so it makes sense to show that this applies to the whole texture and not just one level.
---
dlls/d3d9/tests/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c index 2347841b66f..85d72fff8f7 100644 --- a/dlls/d3d9/tests/device.c +++ b/dlls/d3d9/tests/device.c @@ -9113,7 +9113,7 @@ static void test_getdc(void) if (!testdata[i].getdc_supported) continue;
- if (FAILED(hr = IDirect3DDevice9_CreateCubeTexture(device, 64, 0, 0, + if (FAILED(hr = IDirect3DDevice9_CreateCubeTexture(device, 64, 3, 0, testdata[i].format, D3DPOOL_MANAGED, &cube_texture, NULL))) { skip("Failed to create cube texture for format %s (hr %#lx), skipping tests.\n", testdata[i].name, hr);