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

Open
CedricGuillemet opened this issue Jan 10, 2023 · 0 comments
Open

Texture destroyed while being used #1193

CedricGuillemet opened this issue Jan 10, 2023 · 0 comments
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.

@thomlucc thomlucc added this to the Future milestone Jan 18, 2023
@bghgary bghgary modified the milestones: Future, 7.0 May 11, 2023
@thomlucc thomlucc modified the milestones: 7.0, 8.0 Mar 26, 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