Commit bc8be1bc authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed some cppcheck warnings

parent 881e2726
...@@ -891,7 +891,6 @@ void MeshCompiler::forceUnsharedFaceVertex() ...@@ -891,7 +891,6 @@ void MeshCompiler::forceUnsharedFaceVertex()
for (int t = 0; t < numRemainingTris; ++t) for (int t = 0; t < numRemainingTris; ++t)
{ {
// check if the triangle references the good corner by testing the 3 vertices of the triangulation // check if the triangle references the good corner by testing the 3 vertices of the triangulation
bool triSkipped = true;
for (int k = 0; k < 3; ++k) for (int k = 0; k < 3; ++k)
{ {
int cornerID = -1 - triIndexBuffer_[(triCounter + currentTri->id) * 3 + k]; int cornerID = -1 - triIndexBuffer_[(triCounter + currentTri->id) * 3 + k];
...@@ -915,7 +914,6 @@ void MeshCompiler::forceUnsharedFaceVertex() ...@@ -915,7 +914,6 @@ void MeshCompiler::forceUnsharedFaceVertex()
++numTrisCovered; ++numTrisCovered;
triSkipped = false;
// remove triangle from the ring list // remove triangle from the ring list
currentTri->prev->next = currentTri->next; currentTri->prev->next = currentTri->next;
......
...@@ -79,6 +79,9 @@ DepthPeelingPlugin::DepthPeelingPlugin() : ...@@ -79,6 +79,9 @@ DepthPeelingPlugin::DepthPeelingPlugin() :
for (unsigned int i = 0; i < 4; ++i) for (unsigned int i = 0; i < 4; ++i)
blendDualPeelProg_[i] = 0; blendDualPeelProg_[i] = 0;
for (unsigned int i = 0; i < 16; ++i)
glLightIDs_[i] = 0;
} }
...@@ -255,7 +258,7 @@ void DepthPeelingPlugin::generatePeelingShaders(GLSL::StringList* _strVertexShad ...@@ -255,7 +258,7 @@ void DepthPeelingPlugin::generatePeelingShaders(GLSL::StringList* _strVertexShad
std::string strMaterial = "gl_FrontLightProduct["; std::string strMaterial = "gl_FrontLightProduct[";
{ {
char szTmp[8]; char szTmp[8];
sprintf(szTmp, "%d]", glLightIDs_[i]); sprintf(szTmp, "%u]", glLightIDs_[i]);
strLight += szTmp; strLight += szTmp;
strMaterial += szTmp; strMaterial += szTmp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment