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 buffer-texture copy for 2d arrays #2809

Merged
merged 1 commit into from
Jun 26, 2022

Conversation

tuchs
Copy link
Contributor

@tuchs tuchs commented Jun 25, 2022

Connections
None

Description
For buffer-to-texture copies into 2D array textures the GLES HAL incorrectly used origin.z (which is always 0 here) for the depth argument, this change corrects this by using the array_layer field instead.

Testing
Use write_texture on a 2D_ARRAY with origin.z != 0.

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.

Thanks!

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) June 26, 2022 00:10
@cwfitzgerald cwfitzgerald merged commit 1af3b90 into gfx-rs:master Jun 26, 2022
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