Skip to content

Commit

Permalink
D3D9: we must use TU_DYNAMIC for mipmap generation on D3D9Ex
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Dec 20, 2018
1 parent 45ccacb commit 0417fe4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RenderSystems/Direct3D9/src/OgreD3D9Texture.cpp
Expand Up @@ -369,6 +369,11 @@ namespace Ogre
mSrcHeight = mHeight;
}

if(mUsage & TU_AUTOMIPMAP && D3D9RenderSystem::isDirectX9Ex())
{
mUsage |= TU_DYNAMIC;
}

// load based on tex.type
switch (getTextureType())
{
Expand Down

0 comments on commit 0417fe4

Please sign in to comment.