If TextureSource.destroy has a WebGL Texture it will tell the WebGL Renderer to reset the textures first, before deleting its texture.

This commit is contained in:
Richard Davey 2021-02-17 13:11:12 +00:00
parent a95c34ce92
commit 8a6a4a7219

View file

@ -339,7 +339,7 @@ var TextureSource = new Class({
{
if (this.glTexture)
{
this.renderer.deleteTexture(this.glTexture, false);
this.renderer.deleteTexture(this.glTexture, true);
}
if (this.isCanvas)