summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-12-20 16:48:43 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-12-20 17:17:51 -0800
commit20b82c8fd1de49c096d5c6656401d18af262c46f (patch)
tree515670cad2ca2f6aabd757eaa3f622d502688e75
parent1254bcdb4006d87fefedfc5020b3dc7d3cd0e544 (diff)
downloadqtlocation-mapboxgl-20b82c8fd1de49c096d5c6656401d18af262c46f.tar.gz
[ios, macos] Omit perspectiveSkew from drawing context struct
-rw-r--r--platform/darwin/src/MGLOpenGLStyleLayer.h1
-rw-r--r--platform/darwin/src/MGLOpenGLStyleLayer.mm1
2 files changed, 0 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLOpenGLStyleLayer.h b/platform/darwin/src/MGLOpenGLStyleLayer.h
index 7cb6b147c2..f395484436 100644
--- a/platform/darwin/src/MGLOpenGLStyleLayer.h
+++ b/platform/darwin/src/MGLOpenGLStyleLayer.h
@@ -14,7 +14,6 @@ typedef struct MGLStyleLayerDrawingContext {
double zoomLevel;
CLLocationDirection direction;
CGFloat pitch;
- CGFloat perspectiveSkew;
} MGLStyleLayerDrawingContext;
@interface MGLOpenGLStyleLayer : MGLStyleLayer
diff --git a/platform/darwin/src/MGLOpenGLStyleLayer.mm b/platform/darwin/src/MGLOpenGLStyleLayer.mm
index ac2a6abcd9..12986f64c1 100644
--- a/platform/darwin/src/MGLOpenGLStyleLayer.mm
+++ b/platform/darwin/src/MGLOpenGLStyleLayer.mm
@@ -34,7 +34,6 @@ void MGLDrawCustomStyleLayer(void *context, const mbgl::style::CustomLayerRender
.zoomLevel = params.zoom,
.direction = mbgl::util::wrap(params.bearing, 0., 360.),
.pitch = static_cast<CGFloat>(params.pitch),
- .perspectiveSkew = static_cast<CGFloat>(params.altitude),
};
[layer drawInMapView:layer.mapView withContext:drawingContext];
}