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

TGALoader: fix blue component handling for 16-bit (RGBA5551) images #22360

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

Ithamar
Copy link
Contributor

@Ithamar Ithamar commented Aug 18, 2021

For 16 bit (RGBA5551) TGA images, the loader gets the bit shifting wrong and ruins the blue channel of the images.

This pull fixes this small error, and also removes the // Inversed? comment since I can confirm with this fix in place (16-bit) images are loaded perfectly.

@Mugen87 Mugen87 added this to the r132 milestone Aug 18, 2021
@mrdoob mrdoob merged commit fe50e33 into mrdoob:dev Aug 19, 2021
@mrdoob
Copy link
Owner

mrdoob commented Aug 19, 2021

Thanks!

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.

3 participants