d3d9/tests: Check if formats are supported for render targets in pixelshader_blending_test().

This commit is contained in:
Henri Verbeet 2011-05-05 20:56:06 +02:00 committed by Alexandre Julliard
parent 0cd53a589d
commit ed3f5081a3

View File

@ -8893,8 +8893,11 @@ static void pixelshader_blending_test(IDirect3DDevice9 *device)
for(fmt_index=0; test_formats[fmt_index].textureFormat != 0; fmt_index++)
{
D3DFORMAT fmt = test_formats[fmt_index].textureFormat;
if(IDirect3D9_CheckDeviceFormat(d3d, 0, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8, 0, D3DRTYPE_TEXTURE, fmt) != D3D_OK) {
skip("%s textures not supported\n", test_formats[fmt_index].fmtName);
if (IDirect3D9_CheckDeviceFormat(d3d, 0, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8,
D3DUSAGE_RENDERTARGET, D3DRTYPE_TEXTURE, fmt) != D3D_OK)
{
skip("%s textures not supported as render targets.\n", test_formats[fmt_index].fmtName);
continue;
}