d3d9/tests: Read from the appropriate pixels in test_constant_clamp_vs().

This commit is contained in:
Henri Verbeet 2010-07-30 10:15:28 +02:00 committed by Alexandre Julliard
parent a99bf6c017
commit bb201bb510
1 changed files with 2 additions and 2 deletions

View File

@ -4806,12 +4806,12 @@ static void test_constant_clamp_vs(IDirect3DDevice9 *device)
ok(color_match(color, D3DCOLOR_ARGB(0x00, 0xbf, 0xbf, 0x80), 1),
"quad 2 has color %08x, expected 0x00bfbf80\n", color);
if(shader_20) {
color = getPixelColor(device, 160, 120);
color = getPixelColor(device, 480, 120);
ok(color_match(color, D3DCOLOR_ARGB(0x00, 0xbf, 0xbf, 0x80), 1),
"quad 3 has color %08x, expected 0x00bfbf80\n", color);
}
if(shader_20_2) {
color = getPixelColor(device, 480, 120);
color = getPixelColor(device, 160, 120);
ok(color_match(color, D3DCOLOR_ARGB(0x00, 0xbf, 0xbf, 0x80), 1),
"quad 4 has color %08x, expected 0x00bfbf80\n", color);
}