mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 22:24:33 +00:00
uninitialized variables-sfx
This commit is contained in:
parent
7392d598da
commit
a1a6143e01
11 changed files with 32 additions and 16 deletions
|
|
@ -35,8 +35,11 @@ SFXALDevice::SFXALDevice( SFXProvider *provider,
|
|||
: Parent( name, provider, useHardware, maxBuffers ),
|
||||
mOpenAL( openal ),
|
||||
mContext( NULL ),
|
||||
mDevice( NULL ),
|
||||
mRolloffFactor( 1.0f )
|
||||
mDevice( NULL ),
|
||||
mDistanceModel(SFXDistanceModelLinear),
|
||||
mDistanceFactor(1.0f),
|
||||
mRolloffFactor( 1.0f ),
|
||||
mUserRolloffFactor(1.0f)
|
||||
{
|
||||
mMaxBuffers = getMax( maxBuffers, 8 );
|
||||
|
||||
|
|
@ -80,6 +83,10 @@ SFXALDevice::SFXALDevice( SFXProvider *provider,
|
|||
SFXInternal::gUpdateThread->start();
|
||||
}
|
||||
#endif
|
||||
|
||||
dMemset(effectSlot, 0, sizeof(effectSlot));
|
||||
dMemset(effect, 0, sizeof(effect));
|
||||
uLoop = 0;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue