From 47a33f97f9ea03065687e3032ff149f659f2e946 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sat, 25 Mar 2023 11:43:17 +0100 Subject: [PATCH] dx11: disable texture support check on uwp/xbox Tentative fix for Issue #865 --- core/rend/dx11/dx11context.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/rend/dx11/dx11context.cpp b/core/rend/dx11/dx11context.cpp index 82991282f..96077b94b 100644 --- a/core/rend/dx11/dx11context.cpp +++ b/core/rend/dx11/dx11context.cpp @@ -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;