Commit a529050f authored by Jan's avatar Jan
Browse files

Fixed some sprintf warnings

parent e05b4bc6
......@@ -169,20 +169,10 @@ getRenderObjects(IRenderer* _renderer, GLState& _state, const DrawModes::DrawMod
ro.shaderDesc.tessControlTemplateFile = "BSpline/tesscontrol_lod.glsl";
ro.shaderDesc.tessEvaluationTemplateFile = "BSpline/tesseval_lod.glsl";
QString shaderMacro;
shaderMacro.sprintf("#define BSPLINE_DEGREE_U %i", bsplineSurface_.degree_m());
ro.shaderDesc.macros.push_back(shaderMacro);
shaderMacro.sprintf("#define BSPLINE_DEGREE_V %i", bsplineSurface_.degree_n());
ro.shaderDesc.macros.push_back(shaderMacro);
shaderMacro.sprintf("#define BSPLINE_KNOTVEC_U %i", bsplineSurface_.degree_m() * 2 + 1);
ro.shaderDesc.macros.push_back(shaderMacro);
shaderMacro.sprintf("#define BSPLINE_KNOTVEC_V %i", bsplineSurface_.degree_n() * 2 + 1);
ro.shaderDesc.macros.push_back(shaderMacro);
ro.shaderDesc.macros.push_back(QString("#define BSPLINE_DEGREE_U %1").arg(bsplineSurface_.degree_m()));
ro.shaderDesc.macros.push_back(QString("#define BSPLINE_DEGREE_V %1").arg(bsplineSurface_.degree_n()));
ro.shaderDesc.macros.push_back(QString("#define BSPLINE_KNOTVEC_U %1").arg(bsplineSurface_.degree_m() * 2 + 1));
ro.shaderDesc.macros.push_back(QString("#define BSPLINE_KNOTVEC_V %1").arg(bsplineSurface_.degree_n() * 2 + 1));
ro.setUniform("controlPointTex", int(1));
......
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