From c6f5638e45907ef86e9bbe5a8dcd542249163a4d Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 31 Jan 2024 18:12:54 +0000 Subject: [PATCH] Update CHANGELOG-v3.80.md --- changelog/3.80/CHANGELOG-v3.80.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog/3.80/CHANGELOG-v3.80.md b/changelog/3.80/CHANGELOG-v3.80.md index e293ce800..43b54909b 100644 --- a/changelog/3.80/CHANGELOG-v3.80.md +++ b/changelog/3.80/CHANGELOG-v3.80.md @@ -25,6 +25,7 @@ * The `NineSlice` Game Object method `setSize` now recalculates its origin by calling the `updateDisplayOrigin` method. (thanks @dhashvir) * When a `Layer` Game Object is destroyed, i.e. from changing or restarting a Scene, it will no longer cause an error when trying to destroy the children on its display list. Fix #6675 (thanks @crockergd @gm0nk) * `DynamicTexture` will now automatically call `setSize(width, height)` for both WebGL and Canvas. Previously it only did it for WebGL. This fixes an issue where DynamicTextures in Canvas mode would have a width and height of -1. Fix #6682 (thanks @samme) +* `DynamicTexture.setSize` will now check to see if the `glTexture` bound to the current frame is stale, and if so, destroy it before binding the one from the Render Target. This fixes an issue where constantly destroy and creating Dynamic Textures would cause a memory leak in WebGL. Fix #6669 (thanks @DavidTalevski) ## Examples, Documentation, Beta Testing and TypeScript