small refactoring

This commit is contained in:
2021-05-31 12:47:46 +03:00
parent 5eaa20202b
commit a9f7408e71
44 changed files with 86 additions and 595 deletions

View File

@@ -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;
}