small refactoring
This commit is contained in:
@@ -98,7 +98,6 @@ void TonemappingProc::renderSum(Framebuffer & fbo_src, int index) {
|
||||
int pcnt = fbo_src.width() * fbo_src.height();
|
||||
fbo_src.bindColorTexture(index);
|
||||
fbo_1x1.bind();
|
||||
//glClearFramebuffer(Qt::white, false);
|
||||
glClearFramebuffer();
|
||||
if (shader_sum) {
|
||||
if (shader_sum->isLinked()) {
|
||||
@@ -117,7 +116,6 @@ void TonemappingProc::renderSum(Framebuffer & fbo_src, int index) {
|
||||
}
|
||||
}
|
||||
fbo_1x1.release();
|
||||
//fbo_src.bind();
|
||||
}
|
||||
|
||||
|
||||
@@ -175,7 +173,6 @@ bool TonemappingProc::process() {
|
||||
}
|
||||
fbomm.create();
|
||||
fbo.queryPoints(0, fbo.rect(), GL_FLOAT);
|
||||
//renderSum(fbomm.plane(fbomm.lastLevel()), 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user