Skip to content
Permalink
Browse files

Merge pull request #1534 from FioraAeterna/fixd3dtex1x1

D3D: fix issues with multi-level 1x1 textures on D3D
  • Loading branch information...
Parlane committed Nov 21, 2014
2 parents 21e4e03 + 7337958 commit 4ef0ab273167adf6e568ec602143f7cd0c04edae
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -410,7 +410,7 @@ TextureCache::TCacheEntryBase* TextureCache::Load(unsigned int const stage,

// D3D doesn't like when the specified mipmap count would require more than one 1x1-sized LOD in the mipmap chain
// e.g. 64x64 with 7 LODs would have the mipmap chain 64x64,32x32,16x16,8x8,4x4,2x2,1x1,1x1, so we limit the mipmap count to 6 there
while (g_ActiveConfig.backend_info.bUseMinimalMipCount && std::max(expandedWidth, expandedHeight) >> maxlevel == 0)
while (g_ActiveConfig.backend_info.bUseMinimalMipCount && std::max(width, height) >> maxlevel == 0)
--maxlevel;

TCacheEntryBase *entry = textures[texID];

0 comments on commit 4ef0ab2

Please sign in to comment.
You can’t perform that action at this time.