Don't attach textures to the active cycle in AttachTexture

This commit is contained in:
Billy Laws 2022-09-29 21:39:08 +01:00
parent 7dc3dde815
commit 2556966ec5

View File

@ -233,11 +233,10 @@ namespace skyline::gpu::interconnect {
// Avoids a potential deadlock with this resource being locked while acquiring the TextureManager lock while the thread owning it tries to acquire a lock on this texture // Avoids a potential deadlock with this resource being locked while acquiring the TextureManager lock while the thread owning it tries to acquire a lock on this texture
textureManagerLock.emplace(gpu.texture); textureManagerLock.emplace(gpu.texture);
cycle->AttachObject(view->shared_from_this());
bool didLock{view->LockWithTag(tag)}; bool didLock{view->LockWithTag(tag)};
if (didLock) if (didLock)
attachedTextures.emplace_back(view->texture); attachedTextures.emplace_back(view->texture);
return didLock; return didLock;
} }