Skip to content

Conversation

bungoboingo
Copy link
Contributor

My original "fix" just hard checked if layers.len() == 6 before to solve an issue where a user had exactly 6 atlas layers, but actually the GL_TEXTURE_CUBE_ARRAY check in wgpu is % 6. A different user recently had 12 atlas layers and was still encountering the original issue. I've confirmed this fix solved his issue.

This hack should "fix" this for real until wgpu updates their method of checking texture types for GL backends.

https://github.com/gfx-rs/wgpu/blob/5b2c8406bf787f8b8f86ece1f0b0ba67e72874d2/wgpu-hal/src/lib.rs#L1901
This is the link to the actual check in wgpu, for reference.

@bungoboingo bungoboingo force-pushed the hack/gles-fix-part2 branch from 2127ea3 to 54f9fd0 Compare July 11, 2025 17:53
@hecrj hecrj added this to the 0.14 milestone Jul 25, 2025
@hecrj hecrj added bug Something isn't working rendering wgpu fix labels Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix rendering wgpu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants