From 62a99adb747b8e1d7ad20f4e75563c1b1e6fe08e Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sun, 18 Sep 2022 05:36:11 -0500 Subject: [PATCH] aug GFXTextureArray::setTexture to report what texture sizes are mismatching --- Engine/source/gfx/gfxTextureArray.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Engine/source/gfx/gfxTextureArray.cpp b/Engine/source/gfx/gfxTextureArray.cpp index af0873fee..7571c38a5 100644 --- a/Engine/source/gfx/gfxTextureArray.cpp +++ b/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 {