Kaydet (Commit) 6174152c authored tarafından Zolnai Tamás's avatar Zolnai Tamás

glTF: crash after starting a model without an OpenGL window

Change-Id: I726f4d62ab062fbd41376183f60c26d8e6cfe33e
üst 30fcee6c
......@@ -144,6 +144,9 @@ void SAL_CALL OGLPlayer::start() throw ( uno::RuntimeException, std::exception )
osl::MutexGuard aGuard(m_aMutex);
assert(m_pHandle);
if(!m_pOGLWindow)
return;
// gltf_animation_start play animation from the time 0.0,
// but OGLPlayer::start used as play from that time where it was stopped before
double fTime = gltf_animation_get_time(m_pHandle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment