mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
uninitialized variables-environment and forrest
This commit is contained in:
parent
2c1508c169
commit
1efb687867
20 changed files with 74 additions and 34 deletions
|
|
@ -204,6 +204,7 @@ WaterObject::WaterObject()
|
|||
mCubemap( NULL ),
|
||||
mSpecularColor( 1.0f, 1.0f, 1.0f, 1.0f ),
|
||||
mEmissive( false ),
|
||||
mFullReflect(true),
|
||||
mDepthGradientMax( 50.0f )
|
||||
{
|
||||
mTypeMask = WaterObjectType;
|
||||
|
|
@ -248,6 +249,8 @@ WaterObject::WaterObject()
|
|||
mSurfMatName[BasicUnderWaterMat] = "UnderWaterBasicMat";
|
||||
|
||||
dMemset( mMatInstances, 0, sizeof(mMatInstances) );
|
||||
dMemset(mMatParamHandles, 0, sizeof(mMatParamHandles));
|
||||
mUnderwater = false;
|
||||
|
||||
mWaterPos.set( 0,0,0 );
|
||||
mWaterPlane.set( mWaterPos, Point3F(0,0,1) );
|
||||
|
|
@ -1211,4 +1214,4 @@ S32 WaterObject::getMaterialIndex( const Point3F &camPos )
|
|||
}
|
||||
|
||||
return matIdx;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue