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

Area::write_texture_2d is broken for multiple draw calls #156

Open
janpaul123 opened this issue Mar 22, 2022 · 0 comments
Open

Area::write_texture_2d is broken for multiple draw calls #156

janpaul123 opened this issue Mar 22, 2022 · 0 comments
Labels
bug Something isn't working cruise

Comments

@janpaul123
Copy link
Contributor

janpaul123 commented Mar 22, 2022

If you do something like this multiple times in a row:

let area = cx.add_instances(&MY_SHADER,)
area.write_texture_2d()

then the draw calls will get batched, and it will only get the last texture (the others will get overwritten).

The workaround would be to make a dummy cx.add_instances call in between.

Found by @pankdm, who also showcased the workaround here: #159

@janpaul123 janpaul123 added bug Something isn't working cruise labels Mar 22, 2022
@janpaul123 janpaul123 added this to the Basic stabilization milestone Mar 22, 2022
@janpaul123 janpaul123 moved this to Backlog in Current work Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cruise
Projects
Status: Backlog
Development

No branches or pull requests

1 participant