summaryrefslogtreecommitdiff
path: root/avmedia/source
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-04-28 09:57:29 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-04-28 17:26:34 +0200
commit039c9efa6d007f5512895c0be742e7926c4ac7b2 (patch)
treee2fba744738a61e31a32dea8b3533e0d6b7e2146 /avmedia/source
parentd87b312bcc8a5e64d9a5d0ea647a1050629421bd (diff)
Introduce OpenGLContext::MakeCurrent for switching between contexts
Change-Id: I00b06d1330241c4df3b07dc6e0019c49fd7aa521
Diffstat (limited to 'avmedia/source')
-rw-r--r--avmedia/source/opengl/oglwindow.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/avmedia/source/opengl/oglwindow.cxx b/avmedia/source/opengl/oglwindow.cxx
index 6d4788a7e675..4eaf8eefe97d 100644
--- a/avmedia/source/opengl/oglwindow.cxx
+++ b/avmedia/source/opengl/oglwindow.cxx
@@ -101,6 +101,7 @@ void SAL_CALL OGLWindow::setPosSize( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidt
m_pHandle->viewport.y = nY;
m_pHandle->viewport.width = nWidth;
m_pHandle->viewport.height = nHeight;
+ m_pContext->makeCurrent();
gltf_renderer_set_content(m_pHandle);
gltf_renderer(m_pHandle);
m_pContext->swapBuffers();