Revert "[Qt] Don't regen BackendScope on every QMapboxGL::render() call"
This reverts commit 806da5d940.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user