Commit f40cc6f2 authored by Jan's avatar Jan
Browse files

Removed Warnings

parent 576523be
......@@ -90,10 +90,7 @@ PrefixSumPlan::PrefixSumPlan(int _w, int _h, GLenum _internalFmt, int _blocksize
numDispatches_ = 1;
// configure shader via preprocessor defines
QString blocksizeDef;
blocksizeDef.sprintf("#define SAT_BLOCKSIZE %i", _blocksize);
macros_.push_back(blocksizeDef);
macros_.push_back(QString("#define SAT_BLOCKSIZE %1").arg(_blocksize));
if (_h > 1)
macros_.push_back("#define SAT_2D");
......@@ -410,11 +407,8 @@ SATPlan::SATPlan( int _w, int _h, GLenum _internalFmt /*= GL_R32F*/, int _blocks
{
transposeGroupSize_ = int(sqrtf(float(maxInvocations)));
QString cappedBlocksize;
cappedBlocksize.sprintf("#define SAT_BLOCKSIZE %d", transposeGroupSize_);
transposeMacros_.push_back("#undef SAT_BLOCKSIZE");
transposeMacros_.push_back(cappedBlocksize);
transposeMacros_.push_back(QString("#define SAT_BLOCKSIZE %1").arg(transposeGroupSize_));
}
}
......
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