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] Handle cubemap copies #2725

Merged
merged 3 commits into from
Jun 5, 2022

Conversation

expenses
Copy link
Contributor

@expenses expenses commented Jun 3, 2022

Description

Currently you can't copy a texture to a cubemap in the gles backend because it wrongly uses the glow::TEXTURE_2D target. I've pretty hackily set things up so we check how many array layers the target has, and if it has 6 then we write to the correct cubemap face.

Testing

Tested in Chrome. I get a WebGL: INVALID_OPERATION: bindTexture: textures can not be used with multiple targets error but it functions at least. Fixed that now.

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.

TYSM!

@cwfitzgerald cwfitzgerald merged commit a3b2418 into gfx-rs:master Jun 5, 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