X-Git-Url: http://git.tdb.fi/?p=libs%2Fvr.git;a=blobdiff_plain;f=source%2Fsidebysidecombiner.cpp;h=b1b8f9db06ed2e25537164bf0d4459b943dd0a76;hp=ac353133bac26ea5abb2387b9731cc4b5db7589f;hb=f5248334e741a6409fb3e7bd82ae784aaf1edcb5;hpb=cb460150f6870c172a70237f283c9753250be361 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