mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
d3d9/tests: Check if formats are supported for render targets in pixelshader_blending_test().
This commit is contained in:
parent
0cd53a589d
commit
ed3f5081a3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user