mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-25 23:29:24 +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
|
|
@ -783,7 +783,7 @@ U32 DecalManager::_generateConvexHull( const Vector<Point3F> &points, Vector<Poi
|
|||
while ( ++i <= maxmin )
|
||||
{
|
||||
// the lower line joins P[minmin] with P[maxmin]
|
||||
if ( isLeft( points[minmin], points[maxmin], points[i]) >= 0 && i < maxmin )
|
||||
if (i < maxmin && isLeft(points[minmin], points[maxmin], points[i]) >= 0)
|
||||
continue; // ignore P[i] above or on the lower line
|
||||
|
||||
while (top > 0) // there are at least 2 points on the stack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue