mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 03:23:52 +00:00
Various misc. tweaks and fixes based on static code analysis to minimize/fix memleaks, crashes, or other performance impacting code.
This commit is contained in:
parent
d76c73c252
commit
8956559bfd
44 changed files with 124 additions and 258 deletions
|
|
@ -606,7 +606,7 @@ U32 VolumetricFog::packUpdate(NetConnection *con, U32 mask, BitStream *stream)
|
|||
|
||||
if (mShapeAssetId != StringTable->EmptyString())
|
||||
{
|
||||
mShape = mShape = mShapeAsset->getShapeResource();
|
||||
mShape = mShapeAsset->getShapeResource();
|
||||
}
|
||||
else if (mShapeName && mShapeName[0] != '\0')
|
||||
{
|
||||
|
|
@ -1048,7 +1048,7 @@ void VolumetricFog::prepRenderImage(SceneRenderState *state)
|
|||
return;
|
||||
if (mNumDetailLevels > 1)
|
||||
{
|
||||
if ((det_size[mCurDetailLevel].det_size > mPixelSize) && (mCurDetailLevel < mNumDetailLevels - 1))
|
||||
if ((mCurDetailLevel < mNumDetailLevels - 1) && (det_size[mCurDetailLevel].det_size > mPixelSize))
|
||||
UpdateBuffers(mCurDetailLevel + 1);
|
||||
else if (mCurDetailLevel > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue