diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-08-22 15:54:40 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-08-22 18:32:12 +0200 |
commit | e6bcbdd5d3c3665df86b1ae30a0d726982fd37ef (patch) | |
tree | af6b0f7a376861032d2e5e46032b6d432bde8dcd /src | |
parent | bf1c7a47b5cb0607ab0843dbdafa77ba020623a9 (diff) | |
download | qtlocation-mapboxgl-e6bcbdd5d3c3665df86b1ae30a0d726982fd37ef.tar.gz |
[core] set correct depth values for CustomLayer so compositing works
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/renderer/painter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/renderer/painter.cpp b/src/mbgl/renderer/painter.cpp index 163095d85b..e0c482015b 100644 --- a/src/mbgl/renderer/painter.cpp +++ b/src/mbgl/renderer/painter.cpp @@ -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 { |