diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-22 17:18:38 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-22 17:18:38 +0200 |
commit | d47f11574e25304ab11956ab92905d915a16c129 (patch) | |
tree | 543a3b438e892797d4fbfd29e11f7f97bfa7892b /src | |
parent | fb151b3fbe2ed25d5255c4b532a041e868086011 (diff) | |
download | qtlocation-mapboxgl-d47f11574e25304ab11956ab92905d915a16c129.tar.gz |
do not explicitly render matte; we already cleared the background with glClear
Diffstat (limited to 'src')
-rw-r--r-- | src/map/map.cpp | 2 | ||||
-rw-r--r-- | src/renderer/painter.cpp | 18 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp index ff76de8a5c..6124533e65 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -560,8 +560,6 @@ void Map::render() { source->source->finishRender(painter); } - painter.renderMatte(); - // Schedule another rerender when we definitely need a next frame. if (transform.needsTransition() || style->hasTransitions()) { update(); diff --git a/src/renderer/painter.cpp b/src/renderer/painter.cpp index a323b0582a..c87bcb19a1 100644 --- a/src/renderer/painter.cpp +++ b/src/renderer/painter.cpp @@ -205,21 +205,3 @@ const mat4 &Painter::translatedMatrix(const std::array<float, 2> &translation, c return vtxMatrix; } } - -void Painter::renderMatte() { - gl::group group("matte"); - glDisable(GL_DEPTH_TEST); - glStencilFunc(GL_EQUAL, 0x0, 0xFF); - - Color matte = {{ 0, 0, 0, 1 }}; - - useProgram(plainShader->program); - plainShader->setMatrix(nativeMatrix); - - // Draw the clipping mask - matteArray.bind(*plainShader, tileStencilBuffer, BUFFER_OFFSET(0)); - plainShader->setColor(matte); - glDrawArrays(GL_TRIANGLES, 0, (GLsizei)tileStencilBuffer.index()); - - glEnable(GL_DEPTH_TEST); -} |