diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-10-20 10:47:24 -0700 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-10-22 16:02:39 -0700 |
commit | 5fa144647d83316a20e861c08fd5b6179312ad08 (patch) | |
tree | 1c27221ee02e1f9fb257e3998e52c6c9e898d472 /test/style | |
parent | 7a51a53cac2bb283eb82a5f7835adaa05bbc7b1e (diff) | |
download | qtlocation-mapboxgl-5fa144647d83316a20e861c08fd5b6179312ad08.tar.gz |
[core] Added GLContextMode to MapData
Adding new mbgl::GLContextMode enum to mbgl::Map ctor, which gets stored
in MapData. In shared GL context environments, we cannot assume that the
GL state that has been left since the last draw is the same, so we reset
the GL configurations to their default values.
Diffstat (limited to 'test/style')
-rw-r--r-- | test/style/resource_loading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/style/resource_loading.cpp b/test/style/resource_loading.cpp index d4cb929196..e0c4590c7c 100644 --- a/test/style/resource_loading.cpp +++ b/test/style/resource_loading.cpp @@ -23,7 +23,7 @@ public: MockMapContext(View& view, FileSource& fileSource, const std::function<void(std::exception_ptr error)>& callback) - : data_(MapMode::Still, view.getPixelRatio()), + : data_(MapMode::Still, GLContextMode::Unique, view.getPixelRatio()), transform_(view), callback_(callback) { util::ThreadContext::setFileSource(&fileSource); |