Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Fix aliased text on mobile GPUs #8058

Merged
merged 1 commit into from Feb 15, 2017
Merged

[core] Fix aliased text on mobile GPUs #8058

merged 1 commit into from Feb 15, 2017

Conversation

jfirebaugh
Copy link
Contributor

Need highp precision for gamma values on mobile devices. lowp triggers aliasing artifacts at larger font sizes.

Note that this change is a hand-edit to the generated shader sources, rather than pulling mapbox/mapbox-gl-js#4275 and running the generator script. The reason for that is that the upstream shader now assumes support for DDS properties that gl-native does not yet support. Once that support lands in gl-native, we can regenerate the shader source.

Fixes #7599.

Need highp precision for gamma values on mobile devices. lowp triggers aliasing artifacts at larger font sizes.

Note that this change is a hand-edit to the generated shader sources, rather than pulling mapbox/mapbox-gl-js#4275 and running the generator script. The reason for that is that the upstream shader now assumes support for DDS properties that gl-native does not yet support. Once that support lands in gl-native, we can regenerate the shader source.
Copy link
Contributor

@kkaefer kkaefer left a comment

Choose a reason for hiding this comment

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

Verified on iPhone 6s and Google Pixel C. Also verified that mediump is not sufficient to fix this issue.

@jfirebaugh jfirebaugh merged commit 8f1c580 into master Feb 15, 2017
@jfirebaugh jfirebaugh deleted the fix-7599 branch February 15, 2017 17:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants