mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
since we do in fact allow arbitrary tack on variables to scriptobject derivatives, and thus tamls, reporting theres a non hardcoded variable entry is actively counterproductive to flexibility.
plus minor format fix
This commit is contained in:
parent
ee2fc4804a
commit
7872f01689
3 changed files with 5 additions and 5 deletions
|
|
@ -567,7 +567,7 @@ void SimObject::onTamlCustomRead(TamlCustomNodes const& customNodes)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Unknown name so warn.
|
// Unknown name so warn.
|
||||||
Con::warnf("SimObject::onTamlCustomRead() - Encountered an unknown custom field name of '%s'.", fieldName);
|
//Con::warnf("SimObject::onTamlCustomRead() - Encountered an unknown custom field name of '%s'.", fieldName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ U32 DDSFile::getSurfaceSize( U32 height, U32 width, U32 mipLevel ) const
|
||||||
if(mFlags.test(CompressedData))
|
if(mFlags.test(CompressedData))
|
||||||
{
|
{
|
||||||
// From the directX docs:
|
// From the directX docs:
|
||||||
// max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
|
// max(1, width / 4) x max(1, height / 4) x 8(DXT1) or 16(DXT2-5)
|
||||||
|
|
||||||
U32 sizeMultiple = 0;
|
U32 sizeMultiple = 0;
|
||||||
|
|
||||||
|
|
@ -178,7 +178,7 @@ U32 DDSFile::getSizeInBytes( GFXFormat format, U32 height, U32 width, U32 mipLev
|
||||||
"DDSFile::getSizeInBytes - Must be a Block Compression format!" );
|
"DDSFile::getSizeInBytes - Must be a Block Compression format!" );
|
||||||
|
|
||||||
// From the directX docs:
|
// From the directX docs:
|
||||||
// max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
|
// max(1, width / 4) x max(1, height / 4) x 8(DXT1) or 16(DXT2-5)
|
||||||
|
|
||||||
U32 sizeMultiple = 0;
|
U32 sizeMultiple = 0;
|
||||||
if ( format == GFXFormatBC1 || format == GFXFormatBC1_SRGB || format == GFXFormatBC4)
|
if ( format == GFXFormatBC1 || format == GFXFormatBC1_SRGB || format == GFXFormatBC4)
|
||||||
|
|
|
||||||
|
|
@ -1321,7 +1321,7 @@ U32 GBitmap::getSurfaceSize(const U32 mipLevel) const
|
||||||
if (mInternalFormat >= GFXFormatBC1 && mInternalFormat <= GFXFormatBC3)
|
if (mInternalFormat >= GFXFormatBC1 && mInternalFormat <= GFXFormatBC3)
|
||||||
{
|
{
|
||||||
// From the directX docs:
|
// From the directX docs:
|
||||||
// max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
|
// max(1, width / 4) x max(1, height / 4) x 8(DXT1) or 16(DXT2-5)
|
||||||
|
|
||||||
U32 sizeMultiple = 0;
|
U32 sizeMultiple = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue