summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/painter_clipping.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-11-06 19:52:47 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2015-11-06 20:05:01 +0200
commit8894982625e732e62a4a12fabd7928800c7d5ded (patch)
tree49eb8ff97e15a4328f1582e5d79f37b94c29bbf2 /src/mbgl/renderer/painter_clipping.cpp
parent162ad67802d8d3eb1106b2c30feae607b4309afc (diff)
downloadqtlocation-mapboxgl-8894982625e732e62a4a12fabd7928800c7d5ded.tar.gz
[core] Use GL_TRUE/GL_FALSE instead of true/false
Diffstat (limited to 'src/mbgl/renderer/painter_clipping.cpp')
-rw-r--r--src/mbgl/renderer/painter_clipping.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mbgl/renderer/painter_clipping.cpp b/src/mbgl/renderer/painter_clipping.cpp
index 2b74849cb5..8f6ed75754 100644
--- a/src/mbgl/renderer/painter_clipping.cpp
+++ b/src/mbgl/renderer/painter_clipping.cpp
@@ -10,10 +10,10 @@ void Painter::drawClippingMasks(const std::set<Source*>& sources) {
MBGL_DEBUG_GROUP("clipping masks");
config.program = plainShader->program;
- config.stencilTest = true;
- config.depthTest = true;
+ config.stencilTest = GL_TRUE;
+ config.depthTest = GL_TRUE;
config.depthMask = GL_FALSE;
- config.colorMask = { false, false, false, false };
+ config.colorMask = { GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE };
config.depthRange = { 1.0f, 1.0f };
coveringPlainArray.bind(*plainShader, tileStencilBuffer, BUFFER_OFFSET_0);
@@ -22,8 +22,7 @@ void Painter::drawClippingMasks(const std::set<Source*>& sources) {
source->drawClippingMasks(*this);
}
- config.depthTest = true;
- config.colorMask = { true, true, true, true };
+ config.colorMask = { GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE };
config.depthMask = GL_TRUE;
config.stencilMask = 0x0;
}