Revert "[Qt] Don't regen BackendScope on every QMapboxGL::render() call"

This reverts commit 806da5d940.
This commit is contained in:
Bruno de Oliveira Abinader
2017-05-04 20:12:32 +03:00
parent 36ec203324
commit f59ba4e3f3
2 changed files with 1 additions and 4 deletions

View File

@@ -1510,9 +1510,7 @@ void QMapboxGL::render()
#endif
// The OpenGL implementation automatically enables the OpenGL context for us.
if (!d_ptr->backendScope) {
d_ptr->backendScope = std::make_unique<mbgl::BackendScope>(*d_ptr, mbgl::BackendScope::ScopeType::Implicit);
}
mbgl::BackendScope scope { *d_ptr, mbgl::BackendScope::ScopeType::Implicit };
d_ptr->dirty = false;
d_ptr->mapObj->render(*d_ptr);

View File

@@ -55,7 +55,6 @@ public:
std::unique_ptr<mbgl::DefaultFileSource> fileSourceObj;
std::shared_ptr<mbgl::ThreadPool> threadPool;
std::unique_ptr<mbgl::Map> mapObj;
std::unique_ptr<mbgl::BackendScope> backendScope;
bool dirty { false };