Skip to content

Commit 467fe5c

Browse files
committed
Fix retain cycle
1 parent b704de4 commit 467fe5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GateEngine/Resources/Texture/Texture.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public enum MipMapping: Hashable, Sendable {
3232
var cache: any ResourceCache {
3333
return Game.shared.resourceManager.textureCache(for: cacheKey)!
3434
}
35-
internal var renderTarget: (any _RenderTargetProtocol)?
35+
internal unowned var renderTarget: (any _RenderTargetProtocol)?
3636
private let sizeHint: Size2?
3737

3838
/** The dimensions of the texture.

0 commit comments

Comments
 (0)