Ensure no GL commands are executed after pause

This commit is contained in:
John Firebaugh
2015-05-04 18:27:48 -07:00
parent da8aaa2114
commit 00a1f44cfc
5 changed files with 10 additions and 12 deletions

View File

@@ -77,6 +77,8 @@ MapContext::~MapContext() {
}
void MapContext::pause() {
MBGL_CHECK_ERROR(glFinish());
view.deactivate();
std::unique_lock<std::mutex> lockPause(data.mutexPause);