mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-14 04:03:46 +00:00
don't let GFXD3D11TextureTarget::deactivate() try to generate mips if we haven't told that target to do so
This commit is contained in:
parent
7fcdd03b50
commit
3cdbd4e87e
3 changed files with 16 additions and 6 deletions
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue