dx11: disable texture support check on uwp/xbox

Tentative fix for Issue #865
This commit is contained in:
Flyinghead 2023-03-25 11:43:17 +01:00
parent b36ef9da1e
commit 47a33f97f9
1 changed files with 4 additions and 0 deletions

View File

@ -365,6 +365,9 @@ bool DX11Context::checkTextureSupport()
UINT support;
for (size_t i = 0; i < ARRAY_SIZE(formats); i++)
{
#if defined(LIBRETRO) && defined(TARGET_UWP)
supportedTexFormats[(int)dcTexTypes[i]] = true;
#else
supportedTexFormats[(int)dcTexTypes[i]] = false;
pDevice->CheckFormatSupport(formats[i], &support);
if ((support & (D3D11_FORMAT_SUPPORT_TEXTURE2D | D3D11_FORMAT_SUPPORT_SHADER_SAMPLE)) != (D3D11_FORMAT_SUPPORT_TEXTURE2D | D3D11_FORMAT_SUPPORT_SHADER_SAMPLE))
@ -386,6 +389,7 @@ bool DX11Context::checkTextureSupport()
else
supportedTexFormats[(int)dcTexTypes[i]] = true;
}
#endif
}
return true;