forked from organicmaps/organicmaps
fix crashing on shutdown. Qt not garanted that OpenGL context will be binded on current thread, on other method than painGL, resizeGl and other virtual methods of QGLWidget
This commit is contained in:
parent
fded56bd18
commit
6aae44fff1
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ namespace qt
|
|||
void DrawWidget::PrepareShutdown()
|
||||
{
|
||||
KillPressTask();
|
||||
ASSERT(isValid(), ());
|
||||
makeCurrent();
|
||||
m_framework->PrepareToShutdown();
|
||||
m_videoTimer.reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue