diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-05-23 15:07:59 -0700 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-05-24 19:58:24 +0300 |
commit | 45890ff674b7d2184192a820db79cf7c2be20d94 (patch) | |
tree | 24fc447de5339b421a31950f0fc54fa7df597d1d /platform/osx/src/MGLMapView.mm | |
parent | 64064088afd3d7e08d39f04bb5469dd8f9f4d9dc (diff) | |
download | qtlocation-mapboxgl-45890ff674b7d2184192a820db79cf7c2be20d94.tar.gz |
[osx] Added stencil buffer option
Added an option to display the stencil buffer instead of the color buffer in osxapp.
Diffstat (limited to 'platform/osx/src/MGLMapView.mm')
-rw-r--r-- | platform/osx/src/MGLMapView.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm index cdac60dd8e..5b85ff7ec2 100644 --- a/platform/osx/src/MGLMapView.mm +++ b/platform/osx/src/MGLMapView.mm @@ -2369,6 +2369,9 @@ public: if (options & mbgl::MapDebugOptions::Wireframe) { mask |= MGLMapDebugWireframesMask; } + if (options & mbgl::MapDebugOptions::StencilClip) { + mask |= MGLMapDebugStencilBufferMask; + } return mask; } @@ -2389,6 +2392,9 @@ public: if (debugMask & MGLMapDebugWireframesMask) { options |= mbgl::MapDebugOptions::Wireframe; } + if (debugMask & MGLMapDebugStencilBufferMask) { + options |= mbgl::MapDebugOptions::StencilClip; + } _mbglMap->setDebug(options); } |