Merge branch 'TorqueGameEngines:development' into UpdateAssimp_5.2.5

This commit is contained in:
Bloodknight 2022-10-15 08:22:16 +01:00 committed by GitHub
commit 19e284f5ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,11 +131,6 @@ void GFXTextureArray::setTexture(const GFXTexHandle& texture, U32 slot)
AssertWarn(true, avar("GFXTextureArray::setTexture all textures should have at least the same number of mips: %i vs %i", texture->getMipLevels(), mMipLevels));
Con::warnf(avar("GFXTextureArray::setTexture all textures should have at least the same number of mips: %i vs %i", texture->getMipLevels(), mMipLevels));
}
else
{
AssertWarn(true, "GFXTextureArray::setTexture all textures should have the same format");
Con::warnf("GFXTextureArray::setTexture all textures should have the same format");
}
GBitmap* inBitmap = TEXMGR->loadUncompressedTexture(texture->getPath(), &GFXTexturePersistentProfile, mWidth, mHeight);
if (!inBitmap->setFormat(mFormat))