summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/painter_clipping.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-11-04 13:37:00 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-11-04 13:38:51 +0100
commit8e63084c9e77486c9843ce469e0e8b663bfebb03 (patch)
tree4a3a224bda2450d15caa2915158b5bb677407d1c /src/mbgl/renderer/painter_clipping.cpp
parent1468ff13e338bec04b466cb95a28816a3852e487 (diff)
downloadqtlocation-mapboxgl-8e63084c9e77486c9843ce469e0e8b663bfebb03.tar.gz
[core] Move remaining GL state from Painter into GLConfig object
Diffstat (limited to 'src/mbgl/renderer/painter_clipping.cpp')
-rw-r--r--src/mbgl/renderer/painter_clipping.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/painter_clipping.cpp b/src/mbgl/renderer/painter_clipping.cpp
index 59e40fefe5..2b74849cb5 100644
--- a/src/mbgl/renderer/painter_clipping.cpp
+++ b/src/mbgl/renderer/painter_clipping.cpp
@@ -9,7 +9,7 @@ using namespace mbgl;
void Painter::drawClippingMasks(const std::set<Source*>& sources) {
MBGL_DEBUG_GROUP("clipping masks");
- useProgram(plainShader->program);
+ config.program = plainShader->program;
config.stencilTest = true;
config.depthTest = true;
config.depthMask = GL_FALSE;