浏览代码

Merge pull request #896 from Azaezel/alpha401/setTextureTweak

aug GFXTextureArray::setTexture to report what texture sizes are mism…
Brian Roberts 3 年之前
父节点
当前提交
ada1e83de2
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Engine/source/gfx/gfxTextureArray.cpp

+ 4 - 4
Engine/source/gfx/gfxTextureArray.cpp

@@ -123,13 +123,13 @@ void GFXTextureArray::setTexture(const GFXTexHandle& texture, U32 slot)
       {
          if (texture.getHeight() != mHeight || texture.getWidth() != mWidth)
          {
-            AssertWarn(true, "GFXTextureArray::setTexture all textures should be the same size");
-            Con::warnf("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(avar("GFXTextureArray::setTexture all textures should be the same size: %i vs %i", texture.getHeight(), mHeight));
          }
          else if (texture->getMipLevels() < mMipLevels)
          {
-            AssertWarn(true, "GFXTextureArray::setTexture all textures should have at least the same number of mips");
-            Con::warnf("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(avar("GFXTextureArray::setTexture all textures should have at least the same number of mips: %i vs %i", texture->getMipLevels(), mMipLevels));
          }
          else
          {