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

Texture destroyed while being used #1193

Closed
CedricGuillemet opened this issue Jan 10, 2023 · 1 comment
Closed

Texture destroyed while being used #1193

CedricGuillemet opened this issue Jan 10, 2023 · 1 comment
Assignees
Milestone

Comments

@CedricGuillemet
Copy link
Contributor

Broken nightly:

a texture copy is asked from JS :

const auto textureDestination = info[0].As<Napi::Pointer<Graphics::Texture>>().Get();

but between that call and this one (where the copy is actually performed)
GetBoundFrameBuffer(*encoder).Blit(*encoder, textureDestination->Handle(), 0, 0, textureSource->Handle());

the destination texture is destroyed. I won't discussed why the texture is destroyed, if it's necessary or not. the fact that we can run process related to textures and it can be destroyed before is problematic

I think it's the same as #810
Depending on the work and time it takes, resource is destroyed too early.

@bghgary
Copy link
Contributor

bghgary commented Sep 5, 2024

Closing in favor of #1420

@bghgary bghgary closed this as completed Sep 5, 2024
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 a pull request may close this issue.

3 participants