mirror of https://github.com/PCSX2/pcsx2.git
GS/DX11: Fix incorrect format check for compressed textures
This commit is contained in:
parent
73c6353351
commit
4f27d779a1
|
@ -31,7 +31,7 @@
|
|||
static bool SupportsTextureFormat(ID3D11Device* dev, DXGI_FORMAT format)
|
||||
{
|
||||
UINT support;
|
||||
if (FAILED(dev->CheckFormatSupport(DXGI_FORMAT_BC1_UNORM, &support)))
|
||||
if (FAILED(dev->CheckFormatSupport(format, &support)))
|
||||
return false;
|
||||
|
||||
return (support & D3D11_FORMAT_SUPPORT_TEXTURE2D) != 0;
|
||||
|
|
Loading…
Reference in New Issue