uninitialized and unused value cleanups

(cherry picked from commit 1f08602cf0ad84409cd8b3520510f9c6ce7d5f9c)
This commit is contained in:
AzaezelX 2023-05-01 10:37:44 -05:00
parent 1230d0d280
commit 0d4221fa59
38 changed files with 176 additions and 360 deletions

View file

@ -2452,9 +2452,9 @@ void MeshRoad::_generateSlices()
profileMat2.setRow(1, slicePtr->uvec);
profileMat2.setRow(2, slicePtr->fvec);
for(U32 i = 0; i < 2; i++)
for(U32 profile = 0; profile < 2; profile++)
{
if(i)
if(profile)
mSideProfile.setTransform(profileMat2, slicePtr->p0);
else
mSideProfile.setTransform(profileMat1, slicePtr->p2);
@ -2470,7 +2470,7 @@ void MeshRoad::_generateSlices()
slicePtr->verts.push_back(pos);
box.extend( pos );
if(i)
if(profile)
slicePtr->pb0 = pos;
else
slicePtr->pb2 = pos;

View file

@ -319,7 +319,7 @@ void SkySphere::_initRender()
U32 height = 16;
U32 radius = 1;
F32 x, y, z, xy; // vertex position
F32 x, y; // vertex position
F32 nx, ny, nz, lengthInv = 1.0f / radius; // normal
F32 s, t; // texCoord

View file

@ -107,7 +107,8 @@ public:
{
Point3F pos;
Point3F nor;
F32 s, t;
F32 s = 0.0f;
F32 t = 0.0f;
};
Vector<SphereVertex> tmpVertices;
@ -119,8 +120,8 @@ public:
{
Point3F pos;
Point3F nor;
F32 s;
F32 t;
F32 s = 0.0f;
F32 t = 0.0f;
};
Vector<FinalVertexData> finalVertData;