don't let GFXD3D11TextureTarget::deactivate() try to generate mips if we haven't told that target to do so

This commit is contained in:
AzaezelX 2025-08-04 14:11:00 -05:00
parent 7fcdd03b50
commit 3cdbd4e87e
3 changed files with 16 additions and 6 deletions

View file

@ -849,7 +849,9 @@ void PostEffect::_setupConstants( const SceneRenderState *state )
if (mMipCountSC[i]->isValid())
{
mShaderConsts->set(mMipCountSC[i], (S32)mActiveTextures[i]->getMipLevels());
S32 mipLevels = (S32)mActiveTextures[i]->getMipLevels();
mShaderConsts->set(mMipCountSC[i], mipLevels);
if (mipLevels == 5) Con::errorf("PostEffect::_setupConstants - mipLevels == 5 found!");
}
}