mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:16:04 +00:00
[WINESYNC] d3dx9: Implement DXTn compression for offset destination rect.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id a838e144dcaa55e227d7e99566a59f7a31d97227 by Matteo Bruni <mbruni@codeweavers.com>
This commit is contained in:
parent
38d868820a
commit
e219194369
3 changed files with 78 additions and 51 deletions
|
@ -1814,12 +1814,11 @@ static void test_D3DXCreateTextureFromFileInMemory(IDirect3DDevice9 *device)
|
|||
{
|
||||
for (x = 0; x < 8; ++x)
|
||||
{
|
||||
todo_wine_if (x >= 2 && x < 6 && y >= 2 && y < 6)
|
||||
ok(compare_color(((DWORD *)lock_rect.pBits)[lock_rect.Pitch / 4 * y + x],
|
||||
dds_dxt5_8_8_expected_misaligned_3[y * 8 + x], 0),
|
||||
"Color at position %u, %u is 0x%08x, expected 0x%08x.\n",
|
||||
x, y, ((DWORD *)lock_rect.pBits)[lock_rect.Pitch / 4 * y + x],
|
||||
dds_dxt5_8_8_expected_misaligned_3[y * 8 + x]);
|
||||
ok(compare_color(((DWORD *)lock_rect.pBits)[lock_rect.Pitch / 4 * y + x],
|
||||
dds_dxt5_8_8_expected_misaligned_3[y * 8 + x], 0),
|
||||
"Color at position %u, %u is 0x%08x, expected 0x%08x.\n",
|
||||
x, y, ((DWORD *)lock_rect.pBits)[lock_rect.Pitch / 4 * y + x],
|
||||
dds_dxt5_8_8_expected_misaligned_3[y * 8 + x]);
|
||||
}
|
||||
}
|
||||
hr = IDirect3DSurface9_UnlockRect(uncompressed_surface);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue