diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-07-14 00:21:55 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-07-14 10:40:57 +0200 |
commit | 58fd5a6dd6d5d599df88c9fd4ed5257577562bd9 (patch) | |
tree | c4d4a0395f67cf214fcdb2df5e0dbf9271736a98 /avmedia/source/opengl/oglwindow.cxx | |
parent | f4a8d7cd10cda57143b22519e16cdf8d5f19e759 (diff) |
glTF: More rendering related error handling
If any error occurs related to glTF rendering, a question
mark is displayed at the place of the OpenGL window
(Question mark is a general concept of media objects).
Change-Id: Id7df5a47a4dd6832e640b3a7cb3c7712ebfb4408
Diffstat (limited to 'avmedia/source/opengl/oglwindow.cxx')
-rw-r--r-- | avmedia/source/opengl/oglwindow.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/avmedia/source/opengl/oglwindow.cxx b/avmedia/source/opengl/oglwindow.cxx index 9f09533d2ce9..dbb366215a53 100644 --- a/avmedia/source/opengl/oglwindow.cxx +++ b/avmedia/source/opengl/oglwindow.cxx @@ -33,7 +33,12 @@ OGLWindow::~OGLWindow() void SAL_CALL OGLWindow::update() throw (css::uno::RuntimeException, std::exception) { m_rContext.makeCurrent(); - gltf_prepare_renderer(&m_rHandle); + int nRet = gltf_prepare_renderer(&m_rHandle); + if( nRet != 0 ) + { + SAL_WARN("avmedia.opengl", "Error occured while preparing for rendering! Error code: " << nRet); + return; + } gltf_renderer(&m_rHandle); gltf_complete_renderer(&m_rHandle); m_rContext.swapBuffers(); |