From 3e6a0a2a12f6b269f3157d6a9d56d34b5ab59e4c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 13 Sep 2013 16:26:00 +0300 Subject: [PATCH] Clear the FBO before rendering --- source/stereoview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/stereoview.cpp b/source/stereoview.cpp index 02c60ac..c528023 100644 --- a/source/stereoview.cpp +++ b/source/stereoview.cpp @@ -112,6 +112,7 @@ void StereoView::Eye::setup_frame(const GL::Camera &base_camera, const GL::Vecto void StereoView::Eye::render(const GL::Renderable &renderable, const GL::Tag &tag) const { GL::Bind bind_fbo(target->fbo); + target->fbo.clear(GL::COLOR_BUFFER_BIT|GL::DEPTH_BUFFER_BIT); GL::Renderer renderer(&camera); renderable.render(renderer, tag); } -- 2.45.2