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

Fix glow on devices with only 8 texture slots in GLES2 #42446

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

clayjohn
Copy link
Member

@clayjohn clayjohn commented Oct 1, 2020

Fixes: #42421

This was caused by color correction and glow level 2 sharing a texture unit.

Unfortunately many older GLES2 devices have the minimum of 8 texture units. https://opengles.gpuinfo.org/displaycapability.php?name=GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS&esversion=2

We need 1 texture for the screen texture, 7 textures for glow, and 1 texture for color correction. So on devices that only support 8 texture units we just ignore the seventh glow level. Devices that support more than 8 texture units can use everything normally.

@clayjohn clayjohn added this to the 3.2 milestone Oct 1, 2020
@clayjohn clayjohn requested a review from reduz as a code owner October 1, 2020 05:34
@akien-mga akien-mga merged commit c723711 into godotengine:3.2 Oct 1, 2020
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants