Commit ed3f5081 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 0cd53a58
......@@ -8893,9 +8893,12 @@ 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);
continue;
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;
}
hr = IDirect3DDevice9_Clear(device, 0, NULL, D3DCLEAR_TARGET, 0xffffffff, 0.0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment