diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-07-11 11:23:29 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-07-11 11:23:29 +0200 |
commit | 30fcee6ce56ec4e50ee86c308ca5621746d817d5 (patch) | |
tree | cf1f43d8599d814ca7ca0e431843303add227f22 /avmedia | |
parent | 053b17cb6fe7c0e138ac926d57daf415fbb2527e (diff) |
glTF: Removing one model breaks an other model
Reproduce:
- Insert two models
- Play first model
- Delete second model
Result: crash (windows) or first model disappear from the
opengl window (linux).
Change-Id: I940960754f42a2e4faf5b9f37c0d4a3c155e4650
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglplayer.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx index 3f33a6ce3afa..a4aa7838d774 100644 --- a/avmedia/source/opengl/oglplayer.cxx +++ b/avmedia/source/opengl/oglplayer.cxx @@ -44,6 +44,7 @@ OGLPlayer::~OGLPlayer() delete [] m_pHandle->files[i].buffer; } } + m_aContext.makeCurrent(); gltf_renderer_release(m_pHandle); } } |