summaryrefslogtreecommitdiff
path: root/include/mbgl/renderer/painter.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-08-13 17:46:15 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-08-14 12:58:41 +0200
commitbfd128128589e3941a6895e6d4b2fe3624fd577c (patch)
treecc6b43875fcc6d2ebb76eab6250ecaa11685da32 /include/mbgl/renderer/painter.hpp
parent6ed3d67b625038c359130f38712d378acc2802e2 (diff)
downloadqtlocation-mapboxgl-bfd128128589e3941a6895e6d4b2fe3624fd577c.tar.gz
only set changed glDepthRange values
Diffstat (limited to 'include/mbgl/renderer/painter.hpp')
-rw-r--r--include/mbgl/renderer/painter.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/renderer/painter.hpp b/include/mbgl/renderer/painter.hpp
index 26e1bd3955..4cf99f102d 100644
--- a/include/mbgl/renderer/painter.hpp
+++ b/include/mbgl/renderer/painter.hpp
@@ -130,6 +130,7 @@ public:
void useProgram(uint32_t program);
void lineWidth(float lineWidth);
void depthMask(bool value);
+ void depthRange(float near, float far);
public:
mat4 vtxMatrix;
@@ -156,6 +157,7 @@ private:
float gl_lineWidth = 0;
bool gl_depthMask = true;
std::array<uint16_t, 2> gl_viewport = {{ 0, 0 }};
+ std::array<float, 2> gl_depthRange = {{ 0, 1 }};
float strata = 0;
RenderPass pass = RenderPass::Opaque;
const float strata_epsilon = 1.0f / (1 << 16);