summaryrefslogtreecommitdiff
path: root/test/api
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2020-03-09 11:24:47 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-03-12 15:24:37 +0200
commit96e32717c07d6c3986db0d9562f11e927a3aa97d (patch)
tree61d2350bebf50e1ee2ac74952ba9eaa975fe7a40 /test/api
parent461c4147481f12c3d22bfe7cb6932972a5ef0c9e (diff)
downloadqtlocation-mapboxgl-96e32717c07d6c3986db0d9562f11e927a3aa97d.tar.gz
[test] Run Annotations DebugSparse test only with OpenGL renderer
Diffstat (limited to 'test/api')
-rw-r--r--test/api/annotations.test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/api/annotations.test.cpp b/test/api/annotations.test.cpp
index bedf7a208d..c05c2ef875 100644
--- a/test/api/annotations.test.cpp
+++ b/test/api/annotations.test.cpp
@@ -552,6 +552,10 @@ TEST(Annotations, DebugEmpty) {
TEST(Annotations, DebugSparse) {
+ if (gfx::Backend::GetType() != gfx::Backend::Type::OpenGL) {
+ return;
+ }
+
// This test should only render the top right tile with the associated tile border, but no other
// tiles because they're all empty.
AnnotationTest test;