summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layers
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-08-22 15:54:40 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-08-22 18:32:12 +0200
commite6bcbdd5d3c3665df86b1ae30a0d726982fd37ef (patch)
treeaf6b0f7a376861032d2e5e46032b6d432bde8dcd /include/mbgl/style/layers
parentbf1c7a47b5cb0607ab0843dbdafa77ba020623a9 (diff)
downloadqtlocation-mapboxgl-e6bcbdd5d3c3665df86b1ae30a0d726982fd37ef.tar.gz
[core] set correct depth values for CustomLayer so compositing works
Diffstat (limited to 'include/mbgl/style/layers')
-rw-r--r--include/mbgl/style/layers/custom_layer.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/style/layers/custom_layer.hpp b/include/mbgl/style/layers/custom_layer.hpp
index d3867e2c4f..87bce06f41 100644
--- a/include/mbgl/style/layers/custom_layer.hpp
+++ b/include/mbgl/style/layers/custom_layer.hpp
@@ -33,6 +33,8 @@ struct CustomLayerRenderParameters {
* any assumptions about the GL state (other than that the correct context is active). It may
* make changes to the state, and is not required to reset values such as the depth mask, stencil
* mask, and corresponding test flags to their original values.
+ * Make sure that you are drawing your fragments with a z value of 1 to take advantage of the
+ * opaque fragment culling in case there are opaque layers above your custom layer.
*/
using CustomLayerRenderFunction = void (*)(void* context, const CustomLayerRenderParameters&);