summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arap.cpp2
-rwxr-xr-xsrc/glwidget.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arap.cpp b/src/arap.cpp
index ae7240d..2e4532b 100644
--- a/src/arap.cpp
+++ b/src/arap.cpp
@@ -52,7 +52,7 @@ void ARAP::init
minCorner = coeffMin;
maxCorner = coeffMax;
- initCausticsShape(10);
+ initCausticsShape(1000);
}
void ARAP::update(double seconds)
diff --git a/src/glwidget.cpp b/src/glwidget.cpp
index 1e9b26b..8a35a4f 100755
--- a/src/glwidget.cpp
+++ b/src/glwidget.cpp
@@ -212,7 +212,7 @@ void GLWidget::paintCaustics() {
// glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- glBindFramebuffer(GL_FRAMEBUFFER, m_fbo_texture);
+ glBindFramebuffer(GL_FRAMEBUFFER, m_fbo);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable( GL_BLEND );