d3d8: Only test volume textures if they are supported.
This commit is contained in:
parent
6ff16b9f2e
commit
9a06fd000b
|
@ -481,8 +481,16 @@ static void test_refcount(void)
|
||||||
{
|
{
|
||||||
skip("Cube textures not supported\n");
|
skip("Cube textures not supported\n");
|
||||||
}
|
}
|
||||||
|
if(caps.TextureCaps & D3DPTEXTURECAPS_VOLUMEMAP)
|
||||||
|
{
|
||||||
hr = IDirect3DDevice8_CreateVolumeTexture( pDevice, 32, 32, 2, 0, 0, D3DFMT_X8R8G8B8, D3DPOOL_DEFAULT, &pVolumeTexture );
|
hr = IDirect3DDevice8_CreateVolumeTexture( pDevice, 32, 32, 2, 0, 0, D3DFMT_X8R8G8B8, D3DPOOL_DEFAULT, &pVolumeTexture );
|
||||||
CHECK_CALL( hr, "CreateVolumeTexture", pDevice, ++refcount );
|
CHECK_CALL( hr, "CreateVolumeTexture", pDevice, ++refcount );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
skip("Volume textures not supported\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (pVolumeTexture)
|
if (pVolumeTexture)
|
||||||
{
|
{
|
||||||
tmp = get_refcount( (IUnknown *)pVolumeTexture );
|
tmp = get_refcount( (IUnknown *)pVolumeTexture );
|
||||||
|
|
Loading…
Reference in New Issue