From e6bcbdd5d3c3665df86b1ae30a0d726982fd37ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 22 Aug 2016 15:54:40 +0200 Subject: [core] set correct depth values for CustomLayer so compositing works --- include/mbgl/style/layers/custom_layer.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/mbgl/style/layers') 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&); -- cgit v1.2.1