mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-19 12:20:57 +00:00
uninitialized variables-math
This commit is contained in:
parent
5f59ebbacc
commit
ebb7ed1b78
13 changed files with 32 additions and 19 deletions
|
|
@ -186,8 +186,16 @@ struct FrustumData : public PolyhedronData
|
|||
void _update() const;
|
||||
|
||||
FrustumData()
|
||||
: mDirty( false ),
|
||||
mIsInverted( false ) {}
|
||||
: mIsOrtho(false),
|
||||
mNearLeft(-1.0f),
|
||||
mNearRight(1.0f),
|
||||
mNearTop(1.0f),
|
||||
mNearBottom(-1.0f),
|
||||
mNearDist(0.1f),
|
||||
mFarDist(1.0f),
|
||||
mTransform(MatrixF(true)),
|
||||
mDirty( false ),
|
||||
mIsInverted( false ) {}
|
||||
|
||||
public:
|
||||
|
||||
|
|
@ -478,4 +486,4 @@ class Frustum : public PolyhedronImpl< FrustumData >
|
|||
/// @}
|
||||
};
|
||||
|
||||
#endif // _MATHUTIL_FRUSTUM_H_
|
||||
#endif // _MATHUTIL_FRUSTUM_H_
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public:
|
|||
|
||||
struct Sample
|
||||
{
|
||||
Sample() {}
|
||||
Sample() :mF(0) { dMemset(&mVal, 0, sizeof(mVal)); }
|
||||
Sample( F32 f, const T &val ) : mF(f), mVal(val) {}
|
||||
|
||||
F32 mF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue