diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-11-06 19:52:47 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-11-06 20:05:01 +0200 |
commit | 8894982625e732e62a4a12fabd7928800c7d5ded (patch) | |
tree | 49eb8ff97e15a4328f1582e5d79f37b94c29bbf2 /src/mbgl/renderer/painter_clipping.cpp | |
parent | 162ad67802d8d3eb1106b2c30feae607b4309afc (diff) | |
download | qtlocation-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.cpp | 9 |
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; } |