This commit is contained in:
LazyFunker 2021-05-16 20:44:31 +02:00
parent a9426925cf
commit 4e0f8bf621
1 changed files with 2 additions and 2 deletions

View File

@ -1811,7 +1811,7 @@ static uintptr_t d3d11_gfx_load_texture(
switch (filter_type) switch (filter_type)
{ {
case TEXTURE_FILTER_MIPMAP_LINEAR: case TEXTURE_FILTER_MIPMAP_LINEAR:
#ifdef __WINRT__ #ifndef __WINRT__
texture->desc.MiscFlags = D3D11_RESOURCE_MISC_GENERATE_MIPS; texture->desc.MiscFlags = D3D11_RESOURCE_MISC_GENERATE_MIPS;
#endif #endif
/* fallthrough */ /* fallthrough */
@ -1819,7 +1819,7 @@ static uintptr_t d3d11_gfx_load_texture(
texture->sampler = d3d11->samplers[RARCH_FILTER_LINEAR][RARCH_WRAP_EDGE]; texture->sampler = d3d11->samplers[RARCH_FILTER_LINEAR][RARCH_WRAP_EDGE];
break; break;
case TEXTURE_FILTER_MIPMAP_NEAREST: case TEXTURE_FILTER_MIPMAP_NEAREST:
#ifdef __WINRT__ #ifndef __WINRT__
texture->desc.MiscFlags = D3D11_RESOURCE_MISC_GENERATE_MIPS; texture->desc.MiscFlags = D3D11_RESOURCE_MISC_GENERATE_MIPS;
#endif #endif
/* fallthrough */ /* fallthrough */