d3dx9/tests: Fix initialization of texture levels > 0 in test_D3DXSHProjectCubeMap().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52561 Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
482768a9e6
commit
dbfd33e501
|
@ -4520,7 +4520,7 @@ static void test_D3DXSHProjectCubeMap(void)
|
|||
{
|
||||
hr = IDirect3DCubeTexture9_LockRect(texture, face, level, &map_desc, NULL, 0);
|
||||
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
memset(map_desc.pBits, 0xcc, 4 * map_desc.Pitch);
|
||||
memset(map_desc.pBits, 0xcc, (8 >> level) * map_desc.Pitch);
|
||||
hr = IDirect3DCubeTexture9_UnlockRect(texture, face, level);
|
||||
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue