Skip to content

Commit

Permalink
Fix a missed RenderTargetPool return (#2180)
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Jan 23, 2025
1 parent ac01e7c commit 3bc0f07
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) { //no caching in the presence of overrides
var texture = FullRenderTexture(viewOverlay, handle, iconMetaData, frame);

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

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

Expand Down

0 comments on commit 3bc0f07

Please sign in to comment.