summaryrefslogtreecommitdiff
path: root/src/glwidget.cpp
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-05-10 00:33:27 -0400
committerSebastian Park <SebPark03@gmail.com>2024-05-10 00:33:27 -0400
commit8f61cdb6c394b7c32a495966c7ad3a088c91c17b (patch)
treec5de34e832b822e17bfff3238138dd7a5851b1e8 /src/glwidget.cpp
parent7a61605e57d96bf5c699c9c759288376b8c94eac (diff)
Fix messed up bind framebuffer.
Diffstat (limited to 'src/glwidget.cpp')
-rwxr-xr-xsrc/glwidget.cpp2
1 files changed, 1 insertions, 1 deletions
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 );