X-Git-Url: http://git.tdb.fi/?p=libs%2Fvr.git;a=blobdiff_plain;f=source%2Fsidebysidecombiner.cpp;h=b1b8f9db06ed2e25537164bf0d4459b943dd0a76;hp=ac353133bac26ea5abb2387b9731cc4b5db7589f;hb=11d105c5183b401e5f52e9abb16cf659298cf035;hpb=8c61fd4fc7044c4ec0fd008173947b5b4bc00c6f diff --git a/source/sidebysidecombiner.cpp b/source/sidebysidecombiner.cpp index ac35313..b1b8f9d 100644 --- a/source/sidebysidecombiner.cpp +++ b/source/sidebysidecombiner.cpp @@ -26,7 +26,8 @@ const char fs_source[] = namespace Msp { namespace VR { -SideBySideCombiner::SideBySideCombiner(GL::View &view, bool c): +SideBySideCombiner::SideBySideCombiner(GL::View &v, bool c): + view(v), mesh(GL::VERTEX2), shprog(vs_source, fs_source) { @@ -67,6 +68,8 @@ void SideBySideCombiner::render(const GL::Texture2D &left, const GL::Texture2D & right.bind(); right_shdata.apply(); mesh.draw(); + + view.get_context().swap_buffers(); } } // namespace VR