From: Mikko Rasa Date: Fri, 13 Sep 2013 13:26:00 +0000 (+0300) Subject: Clear the FBO before rendering X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=3e6a0a2a12f6b269f3157d6a9d56d34b5ab59e4c;p=libs%2Fvr.git Clear the FBO before rendering --- 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); }