From 8ff04303705fac480307eeda11a772b4984577d8 Mon Sep 17 00:00:00 2001 From: LazyFunker Date: Tue, 20 Apr 2021 10:29:17 +0200 Subject: [PATCH] Disable mipmap generation for UWP --- gfx/drivers/d3d11.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/drivers/d3d11.c b/gfx/drivers/d3d11.c index 66d45b3b5a..a39a61fb88 100644 --- a/gfx/drivers/d3d11.c +++ b/gfx/drivers/d3d11.c @@ -1811,13 +1811,17 @@ static uintptr_t d3d11_gfx_load_texture( switch (filter_type) { case TEXTURE_FILTER_MIPMAP_LINEAR: +#ifdef __WINRT__ texture->desc.MiscFlags = D3D11_RESOURCE_MISC_GENERATE_MIPS; +#endif /* fallthrough */ case TEXTURE_FILTER_LINEAR: texture->sampler = d3d11->samplers[RARCH_FILTER_LINEAR][RARCH_WRAP_EDGE]; break; case TEXTURE_FILTER_MIPMAP_NEAREST: +#ifdef __WINRT__ texture->desc.MiscFlags = D3D11_RESOURCE_MISC_GENERATE_MIPS; +#endif /* fallthrough */ case TEXTURE_FILTER_NEAREST: texture->sampler = d3d11->samplers[RARCH_FILTER_NEAREST][RARCH_WRAP_EDGE];