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

gles: Fix texture description for bgra formats #2520

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

JCapucho
Copy link
Collaborator

@JCapucho JCapucho commented Mar 1, 2022

Connections
None that I'm aware

Description
Bgra formats were previously using glow::RGBA as the format which caused
texture copies to produce weird colors.

This PR changes them to glow::BGRA

Testing
This change was tested on a modified fork of veloren which when using gles was producing weird colors when doing a screenshot, applying this PR fixes it.

Previously they were using `glow::RGBA` as the format which caused
texture copies to produce weird colors.
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Ooops!

@cwfitzgerald cwfitzgerald merged commit e672974 into gfx-rs:master Mar 1, 2022
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Mar 1, 2022
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Feb 9, 2023
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