Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix z-fighting of translucent fills #5206

Merged
merged 1 commit into from
Sep 7, 2017
Merged

Fix z-fighting of translucent fills #5206

merged 1 commit into from
Sep 7, 2017

Conversation

jfirebaugh
Copy link
Contributor

Partial fix for #3320, as described in #3320 (comment).

@jfirebaugh jfirebaugh requested a review from kkaefer August 30, 2017 00:57
Regression test for mapbox-gl-js#2533 was changed slightly to compensate for an incidental difference.
@@ -26,6 +26,7 @@ function drawFill(painter: Painter, sourceCache: SourceCache, layer: FillStyleLa
// Once we switch to earcut drawing we can pull most of the WebGL setup
// outside of this coords loop.
painter.setDepthSublayer(1);
painter.depthMask(painter.isOpaquePass);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants