Skip to content

Commit

Permalink
Merge pull request #43 from rinigus/mbox-update
Browse files Browse the repository at this point in the history
Update to support current Mapbox GL Native master
  • Loading branch information
rinigus authored Jun 8, 2020
2 parents 67c5ae0 + 1ddec38 commit a4d0dd2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/qquickitemmapboxgl.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public slots:
void onMapChanged(QMapboxGL::MapChange change); ///< Follow the state of the map
void onMapLoadingFailed(QMapboxGL::MapLoadingFailure type, const QString &description);

std::string resourceTransform(const std::string &&url); ///< Use resource transform API to change requested URL
std::string resourceTransform(const std::string &url); ///< Use resource transform API to change requested URL

void setError(QString error); ///< Set error string, used internally

Expand Down
3 changes: 2 additions & 1 deletion rpm/mapbox-gl-qml.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ BuildRequires: pkgconfig(Qt5Location)
BuildRequires: pkgconfig(Qt5Positioning)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(openssl)
BuildRequires: qmapboxgl
BuildRequires: qmapboxgl-devel
Requires: qmapboxgl

%description
QML plugin for Mapbox GL Native.
Expand Down
2 changes: 1 addition & 1 deletion src/qquickitemmapboxgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ void QQuickItemMapboxGL::setUrlSuffix(const QString &urlsfx)
emit urlSuffixChanged(urlsfx);
}

std::string QQuickItemMapboxGL::resourceTransform(const std::string &&url)
std::string QQuickItemMapboxGL::resourceTransform(const std::string &url)
{
QMutexLocker lk(&m_resourceTransformMutex);
std::string newurl = url + m_urlSuffix;
Expand Down
1 change: 1 addition & 0 deletions src/qsgmapboxglnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ bool QSGMapboxGLTextureNode::render(QQuickWindow *window)

// QTBUG-62861
f->glPixelStorei(GL_UNPACK_ALIGNMENT, alignment);
f->glDepthRangef(0, 1);

window->resetOpenGLState();
markDirty(QSGNode::DirtyMaterial);
Expand Down

0 comments on commit a4d0dd2

Please sign in to comment.