Commit 8d5c625c authored by Jan Möbius's avatar Jan Möbius

Moved variable info loops, added more consts



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18252 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 79712ce9
......@@ -340,12 +340,11 @@ void DepthPeeling::renderFrontPeeling(ACG::GLState* _glState,
// since the front layer is already initialized in
// depth buffer 0 and we want to extract the second one now
int currID = 0;
for (int pass = 1; pass < maxPeelCount_; ++pass)
{
currID = pass & 1;
int prevID = 1 - currID;
int bufID = currID * 2;
const int currID = pass & 1;
const int prevID = 1 - currID;
const int bufID = currID * 2;
// peeling MRT slots:
// RT0 - color
......@@ -581,8 +580,8 @@ void DepthPeeling::renderDualPeeling(ACG::GLState* _glState, Viewer::ViewerPrope
for (int pass = 1; 1 && pass < maxPeelCount_; ++pass)
{
currID = pass & 1;
int prevID = 1 - currID;
int bufID = currID * 3;
const int prevID = 1 - currID;
const int bufID = currID * 3;
GLenum targetBuffer[3];
targetBuffer[0] = GL_COLOR_ATTACHMENT0 + bufID;
......
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