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