GS/DX11: Fix incorrect format check for compressed textures

This commit is contained in:
Connor McLaughlin 2022-03-19 12:58:27 +10:00 committed by refractionpcsx2
parent 73c6353351
commit 4f27d779a1
1 changed files with 1 additions and 1 deletions

View File

@ -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;