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

Add shader defines for all blend modes #2257

Merged
merged 1 commit into from
Apr 5, 2021
Merged

Add shader defines for all blend modes #2257

merged 1 commit into from
Apr 5, 2021

Conversation

matteblair
Copy link
Member

Fixes a bug with dashed polyline rendering introduced by #2137. On this line in polyline.fs we checked #if defined(TANGRAM_BLEND_OPAQUE), but TANGRAM_BLEND_OPAQUE was never injected! This change injects shader defines for all blending modes, to more closely match Tangram JS shaders.

Resolves #2256

@tallytalwar
Copy link
Member

Looks fine to me. Any idea when was the regression introduced?

@matteblair
Copy link
Member Author

I introduced this regression in #2137 where I was fixing an issue first found in Tangram JS. I used the same GLSL code because I assumed we were injecting the same defines.

@matteblair matteblair merged commit d9b9d49 into main Apr 5, 2021
@matteblair matteblair deleted the fix-2256 branch April 5, 2021 03:58
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.

Black background shown for all dashed line styles
2 participants