d3dx9: Do not try to fill textures other than ARGB in fill texture functions.
This commit is contained in:
parent
84935d4312
commit
2c19f22c8a
|
@ -1344,7 +1344,7 @@ HRESULT WINAPI D3DXFillTexture(LPDIRECT3DTEXTURE9 texture,
|
|||
return D3DERR_INVALIDCALL;
|
||||
|
||||
format = get_format_info(desc.Format);
|
||||
if (format->format == D3DFMT_UNKNOWN)
|
||||
if (format->type != FORMAT_ARGB)
|
||||
{
|
||||
FIXME("Unsupported texture format %#x\n", desc.Format);
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
@ -1746,7 +1746,7 @@ HRESULT WINAPI D3DXFillCubeTexture(LPDIRECT3DCUBETEXTURE9 texture,
|
|||
return D3DERR_INVALIDCALL;
|
||||
|
||||
format = get_format_info(desc.Format);
|
||||
if (format->format == D3DFMT_UNKNOWN)
|
||||
if (format->type != FORMAT_ARGB)
|
||||
{
|
||||
FIXME("Unsupported texture format %#x\n", desc.Format);
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
@ -1840,7 +1840,7 @@ HRESULT WINAPI D3DXFillVolumeTexture(LPDIRECT3DVOLUMETEXTURE9 texture,
|
|||
return D3DERR_INVALIDCALL;
|
||||
|
||||
format = get_format_info(desc.Format);
|
||||
if (format->format == D3DFMT_UNKNOWN)
|
||||
if (format->type != FORMAT_ARGB)
|
||||
{
|
||||
FIXME("Unsupported texture format %#x\n", desc.Format);
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
|
Loading…
Reference in New Issue