Skip to content

Conversation

@slimbuck
Copy link
Member

@slimbuck slimbuck commented Oct 8, 2025

Description

Unload sog texture assets in the bundled case, similar to #7951.

@slimbuck slimbuck requested review from a team and Copilot October 8, 2025 11:15
@slimbuck slimbuck self-assigned this Oct 8, 2025
@slimbuck slimbuck added bug Something isn't working area: graphics Graphics related issue labels Oct 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds proper cleanup for SOG texture assets when the bundle is unloaded, ensuring that dependent texture resources are properly removed from the asset registry and destroyed to prevent memory leaks.

  • Adds an unload event handler to clean up texture assets
  • Removes textures from the asset registry and calls their unload methods

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@slimbuck slimbuck merged commit c6f199e into playcanvas:main Oct 8, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants