mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #896 from Azaezel/alpha401/setTextureTweak
aug GFXTextureArray::setTexture to report what texture sizes are mism…
This commit is contained in:
commit
ada1e83de2
1 changed files with 4 additions and 4 deletions
|
|
@ -123,13 +123,13 @@ void GFXTextureArray::setTexture(const GFXTexHandle& texture, U32 slot)
|
||||||
{
|
{
|
||||||
if (texture.getHeight() != mHeight || texture.getWidth() != mWidth)
|
if (texture.getHeight() != mHeight || texture.getWidth() != mWidth)
|
||||||
{
|
{
|
||||||
AssertWarn(true, "GFXTextureArray::setTexture all textures should be the same size");
|
AssertWarn(true, avar("GFXTextureArray::setTexture all textures should be the same size: %i vs %i", texture.getHeight(), mHeight));
|
||||||
Con::warnf("GFXTextureArray::setTexture all textures should be the same size");
|
Con::warnf(avar("GFXTextureArray::setTexture all textures should be the same size: %i vs %i", texture.getHeight(), mHeight));
|
||||||
}
|
}
|
||||||
else if (texture->getMipLevels() < mMipLevels)
|
else if (texture->getMipLevels() < mMipLevels)
|
||||||
{
|
{
|
||||||
AssertWarn(true, "GFXTextureArray::setTexture all textures should have at least the same number of mips");
|
AssertWarn(true, avar("GFXTextureArray::setTexture all textures should have at least the same number of mips: %i vs %i", texture->getMipLevels(), mMipLevels));
|
||||||
Con::warnf("GFXTextureArray::setTexture all textures should have at least the same number of mips");
|
Con::warnf(avar("GFXTextureArray::setTexture all textures should have at least the same number of mips: %i vs %i", texture->getMipLevels(), mMipLevels));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue