From 20b82c8fd1de49c096d5c6656401d18af262c46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Tue, 20 Dec 2016 16:48:43 -0800 Subject: [PATCH] [ios, macos] Omit perspectiveSkew from drawing context struct --- platform/darwin/src/MGLOpenGLStyleLayer.h | 1 - platform/darwin/src/MGLOpenGLStyleLayer.mm | 1 - 2 files changed, 2 deletions(-) diff --git a/platform/darwin/src/MGLOpenGLStyleLayer.h b/platform/darwin/src/MGLOpenGLStyleLayer.h index 7cb6b147c..f39548443 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 ac2a6abcd..12986f64c 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(params.pitch), - .perspectiveSkew = static_cast(params.altitude), }; [layer drawInMapView:layer.mapView withContext:drawingContext]; }