Skip to content

Commit

Permalink
D3D11: Sampler - fix mipFilter=FO_NONE translation
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Oct 9, 2021
1 parent 7ab7fe2 commit 9346b13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RenderSystems/Direct3D11/src/OgreD3D11TextureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ namespace Ogre

desc.Filter = D3D11Mappings::get(mMinFilter, mMagFilter, mMipFilter, mCompareEnabled);
desc.MaxAnisotropy = mMaxAniso;
desc.MipLODBias = static_cast<float>(Math::Clamp(mMipmapBias - 0.5, -16.00, 15.99));
desc.MinLOD = -D3D11_FLOAT32_MAX;
desc.MaxLOD = D3D11_FLOAT32_MAX;
desc.MipLODBias = mMipmapBias;
desc.MinLOD = 0;
desc.MaxLOD = mMipFilter == FO_NONE ? 0 : D3D11_FLOAT32_MAX;

bool reversedZ = Root::getSingleton().getRenderSystem()->isReverseDepthBufferEnabled();
auto cmpFunc = mCompareFunc;
Expand Down

0 comments on commit 9346b13

Please sign in to comment.