diff options
Diffstat (limited to 'src/mbgl/gl/context.cpp')
-rw-r--r-- | src/mbgl/gl/context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp index a7b40b6448..1be6a32f2b 100644 --- a/src/mbgl/gl/context.cpp +++ b/src/mbgl/gl/context.cpp @@ -698,8 +698,8 @@ void Context::setDrawMode(const gfx::Triangles&) { void Context::setDrawMode(const gfx::TriangleStrip&) { } -void Context::setDepthMode(const DepthMode& depth) { - if (depth.func == DepthMode::Always && !depth.mask) { +void Context::setDepthMode(const gfx::DepthMode& depth) { + if (depth.func == gfx::DepthFunctionType::Always && depth.mask != gfx::DepthMaskType::ReadWrite) { depthTest = false; // Workaround for rendering errors on Adreno 2xx GPUs. Depth-related state should |