Commit 4414fdfc authored by Jan Möbius's avatar Jan Möbius

Silence some cppcheck warnings

parent 9682aa2f
......@@ -1302,15 +1302,15 @@ QString IRenderer::dumpCurrentRenderObjectsToString(ACG::RenderObject** _list, b
ShaderProgGenerator progGen(&(obj->shaderDesc), _modifiers);
outStrm << "\n---------------------vertex-shader--------------------\n\n";
for (int i = 0; i < progGen.getVertexShaderCode().size(); ++i)
outStrm << progGen.getVertexShaderCode()[i] << "\n";
for (int nr = 0; nr < progGen.getVertexShaderCode().size(); ++nr)
outStrm << progGen.getVertexShaderCode()[nr] << "\n";
outStrm << "\n---------------------end-vertex-shader--------------------\n\n";
if (progGen.hasTessControlShader())
{
outStrm << "\n---------------------tesscontrol-shader--------------------\n\n";
for (int i = 0; i < progGen.getTessControlShaderCode().size(); ++i)
outStrm << progGen.getTessControlShaderCode()[i] << "\n";
for (int nr = 0; nr < progGen.getTessControlShaderCode().size(); ++nr)
outStrm << progGen.getTessControlShaderCode()[nr] << "\n";
outStrm << "\n---------------------end-tesscontrol-shader--------------------\n\n";
}
......@@ -1318,23 +1318,23 @@ QString IRenderer::dumpCurrentRenderObjectsToString(ACG::RenderObject** _list, b
{
outStrm << "\n---------------------tesseval-shader--------------------\n\n";
if (progGen.hasTessEvaluationShader())
for (int i = 0; i < progGen.getTessEvaluationShaderCode().size(); ++i)
outStrm << progGen.getTessEvaluationShaderCode()[i] << "\n";
for (int nr = 0; nr < progGen.getTessEvaluationShaderCode().size(); ++nr)
outStrm << progGen.getTessEvaluationShaderCode()[nr] << "\n";
outStrm << "\n---------------------end-tesseval-shader--------------------\n\n";
}
if (progGen.hasGeometryShader())
{
outStrm << "\n---------------------geometry-shader--------------------\n\n";
for (int i = 0; i < progGen.getGeometryShaderCode().size(); ++i)
outStrm << progGen.getGeometryShaderCode()[i] << "\n";
for (int nr = 0; nr < progGen.getGeometryShaderCode().size(); ++nr)
outStrm << progGen.getGeometryShaderCode()[nr] << "\n";
outStrm << "\n---------------------end-geometry-shader--------------------\n\n";
}
outStrm << "\n---------------------fragment-shader--------------------\n\n";
for (int i = 0; i < progGen.getFragmentShaderCode().size(); ++i)
outStrm << progGen.getFragmentShaderCode()[i] << "\n";
for (int nr = 0; nr < progGen.getFragmentShaderCode().size(); ++nr)
outStrm << progGen.getFragmentShaderCode()[nr] << "\n";
outStrm << "\n---------------------end-fragment-shader--------------------\n\n";
}
......
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