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

Restore GL_UNPACK_ALIGNMENT to 4 to prevent corruption of Qt font rendering. #643

Merged

Conversation

malban
Copy link
Contributor

@malban malban commented Jul 23, 2019

For some reason setting GL_UNPACK_ALIGNMENT to something other than 4 can effect Qt font rendering: https://forum.qt.io/topic/90149/qpainter-drawtext-display-corrupted-text-on-a-qopenglwidget

This PR restores GL_UNPACK_ALIGNMENT back to 4 in various places it is modified in the plug-ins after the relevant data has been unpacked.

Before:
mapviz_20190723T204911_772000

After:
mapviz_20190723T204707_874595

@pjreed
Copy link
Contributor

pjreed commented Jul 26, 2019

Ooh, weird. Good catch!

@pjreed pjreed merged commit 1a9a1d9 into swri-robotics:master Jul 26, 2019
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.

None yet

2 participants