[core] set correct depth values for CustomLayer so compositing works

This commit is contained in:
Konstantin Käfer
2016-08-22 15:54:40 +02:00
parent bf1c7a47b5
commit e6bcbdd5d3
5 changed files with 41 additions and 11 deletions

View File

@@ -263,6 +263,11 @@ void Painter::renderPass(PaintParameters& parameters,
} else if (layer.is<CustomLayer>()) {
MBGL_DEBUG_GROUP(layer.baseImpl->id + " - custom");
VertexArrayObject::Unbind();
config.depthFunc.reset();
config.depthTest = GL_TRUE;
config.depthMask = GL_FALSE;
config.stencilTest = GL_FALSE;
setDepthSublayer(0);
layer.as<CustomLayer>()->impl->render(state);
config.setDirty();
} else {