diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-12-20 16:48:43 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-12-20 17:17:51 -0800 |
commit | 20b82c8fd1de49c096d5c6656401d18af262c46f (patch) | |
tree | 515670cad2ca2f6aabd757eaa3f622d502688e75 /platform | |
parent | 1254bcdb4006d87fefedfc5020b3dc7d3cd0e544 (diff) | |
download | qtlocation-mapboxgl-20b82c8fd1de49c096d5c6656401d18af262c46f.tar.gz |
[ios, macos] Omit perspectiveSkew from drawing context struct
Diffstat (limited to 'platform')
-rw-r--r-- | platform/darwin/src/MGLOpenGLStyleLayer.h | 1 | ||||
-rw-r--r-- | platform/darwin/src/MGLOpenGLStyleLayer.mm | 1 |
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]; } |