mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
* BugFix: Clear a lot of warnings and correct a few actual programming errors along the way.
This commit is contained in:
parent
ef514d0e6b
commit
1b6b803a20
61 changed files with 120 additions and 118 deletions
|
|
@ -1914,7 +1914,11 @@ void ParticleEmitter::copyToVB( const Point3F &camPos, const LinearColorF &ambie
|
|||
{
|
||||
SortParticle* partPtr = orderedVector.address();
|
||||
for (U32 i = 0; i < n_parts - 1; i++, partPtr++, buffPtr -= 4)
|
||||
setupRibbon(partPtr->p, partPtr++->p, partPtr--->p, camPos, ambientColor, buffPtr);
|
||||
{
|
||||
SortParticle* part = partPtr;
|
||||
partPtr++;
|
||||
setupRibbon(part->p, partPtr->p, partPtr->p, camPos, ambientColor, buffPtr);
|
||||
}
|
||||
}
|
||||
// do unsorted-oriented particles
|
||||
else
|
||||
|
|
@ -1933,7 +1937,11 @@ void ParticleEmitter::copyToVB( const Point3F &camPos, const LinearColorF &ambie
|
|||
{
|
||||
SortParticle* partPtr = orderedVector.address();
|
||||
for (U32 i = 0; i < n_parts - 1; i++, partPtr++, buffPtr += 4)
|
||||
setupRibbon(partPtr->p, partPtr++->p, partPtr--->p, camPos, ambientColor, buffPtr);
|
||||
{
|
||||
SortParticle* part = partPtr;
|
||||
partPtr++;
|
||||
setupRibbon(part->p, partPtr->p, partPtr->p, camPos, ambientColor, buffPtr);
|
||||
}
|
||||
}
|
||||
// do unsorted-oriented particles
|
||||
else
|
||||
|
|
|
|||
|
|
@ -996,7 +996,7 @@ void Precipitation::initRenderObjects()
|
|||
// entire or a partially filled vb.
|
||||
mRainIB.set(GFX, mMaxVBDrops * 6, 0, GFXBufferTypeStatic);
|
||||
U16 *idxBuff;
|
||||
mRainIB.lock(&idxBuff, NULL, NULL, NULL);
|
||||
mRainIB.lock(&idxBuff, NULL, 0, 0);
|
||||
for( U32 i=0; i < mMaxVBDrops; i++ )
|
||||
{
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue