Commit 46f08b16 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dx9: Also check for a valid alpha channel for TGA images.

parent 921bade0
...@@ -895,7 +895,8 @@ static BOOL image_is_argb(IWICBitmapFrameDecode *frame, const D3DXIMAGE_INFO *in ...@@ -895,7 +895,8 @@ static BOOL image_is_argb(IWICBitmapFrameDecode *frame, const D3DXIMAGE_INFO *in
BYTE *buffer; BYTE *buffer;
HRESULT hr; HRESULT hr;
if (info->Format != D3DFMT_X8R8G8B8 || info->ImageFileFormat != D3DXIFF_BMP) if (info->Format != D3DFMT_X8R8G8B8 || (info->ImageFileFormat != D3DXIFF_BMP
&& info->ImageFileFormat != D3DXIFF_TGA))
return FALSE; return FALSE;
size = info->Width * info->Height * 4; size = info->Width * info->Height * 4;
......
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