Skip to content

Commit

Permalink
Fix a missed RenderTargetPool return
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit committed Jan 23, 2025
1 parent 3be08fe commit 4584e50
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions OpenDreamClient/Rendering/DreamIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ public void Dispose() {
TextureRenderOffset = Vector2.Zero;
return frame;
} else {
if(textureOverride is not null)
return FullRenderTexture(viewOverlay, handle, iconMetaData, frame).Texture; //no caching in the presence of overrides
if (textureOverride is not null) {
var texture = FullRenderTexture(viewOverlay, handle, iconMetaData, frame); //no caching in the presence of overrides

renderTargetPool.ReturnAtEndOfFrame(texture);
return texture.Texture;
}

CachedTexture = FullRenderTexture(viewOverlay, handle, iconMetaData, frame);
}

Expand Down

0 comments on commit 4584e50

Please sign in to comment.