From 62ec3546d6028a1772bf7fda30acff48feddce10 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sun, 16 Jan 2022 10:37:55 +0100 Subject: [PATCH] dx11: uwp doesn't need texture conversions --- core/rend/dx11/dx11_texture.cpp | 2 ++ core/rend/dx11/dx11_texture.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/rend/dx11/dx11_texture.cpp b/core/rend/dx11/dx11_texture.cpp index 1d7c59be7..75fecdde5 100644 --- a/core/rend/dx11/dx11_texture.cpp +++ b/core/rend/dx11/dx11_texture.cpp @@ -109,6 +109,7 @@ void DX11Texture::UploadToGPU(int width, int height, u8* temp_tex_buffer, bool m theDX11Context.getDeviceContext()->GenerateMips(textureView); } +#ifndef TARGET_UWP bool DX11Texture::Force32BitTexture(TextureType type) const { if (IsWindows8OrGreater()) @@ -117,6 +118,7 @@ bool DX11Texture::Force32BitTexture(TextureType type) const // are not supported on Windows 7 return type == TextureType::_565 || type == TextureType::_5551 || type == TextureType::_4444; } +#endif bool DX11Texture::Delete() { diff --git a/core/rend/dx11/dx11_texture.h b/core/rend/dx11/dx11_texture.h index 689583ba2..5d77b9044 100644 --- a/core/rend/dx11/dx11_texture.h +++ b/core/rend/dx11/dx11_texture.h @@ -33,7 +33,9 @@ public: bool mipmapsIncluded = false) override; bool Delete() override; void loadCustomTexture(); +#ifndef TARGET_UWP bool Force32BitTexture(TextureType type) const override; +#endif }; class DX11TextureCache final : public BaseTextureCache