diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-14 10:49:10 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-15 14:23:43 +0200 |
commit | 882e1bb2db4d84d8349657153cfe14363d5d9da4 (patch) | |
tree | 7a689911ea569860aee40f26bdd63baccf02bf1e /avmedia | |
parent | OGLWindow: move camera only when one of the key candidates is pressed (diff) | |
download | core-882e1bb2db4d84d8349657153cfe14363d5d9da4.tar.gz core-882e1bb2db4d84d8349657153cfe14363d5d9da4.zip |
OGLWindow: use update function for redrawing.
Change-Id: Icca39a44d6a4437f20d120b4032a39f7e74ac066
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglwindow.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/avmedia/source/opengl/oglwindow.cxx b/avmedia/source/opengl/oglwindow.cxx index f7987188d30a..f32070af4366 100644 --- a/avmedia/source/opengl/oglwindow.cxx +++ b/avmedia/source/opengl/oglwindow.cxx @@ -250,8 +250,6 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent) nCode == KEY_A || nCode == KEY_D || nCode == KEY_W || nCode == KEY_S ) { - m_pContext->makeCurrent(); - // Calculate movement glm::vec3 vMoveBy; { @@ -280,10 +278,7 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent) } gltf_renderer_move_camera(vMoveBy.x,vMoveBy.y,vMoveBy.z,10.0); - gltf_prepare_renderer(m_pHandle); - gltf_renderer(m_pHandle); - gltf_complete_renderer(); - m_pContext->swapBuffers(); + update(); } } } |