@@ -300,6 +300,11 @@ export class CurrentScreenBlock extends NodeMaterialBlock {
this.texture = Texture.Parse(serializationObject.texture, scene, rootUrl) as Texture;
}
+
+ public dispose() {
+ super.dispose();
+ this.texture?.dispose();
+ }
_TypeStore.RegisteredTypes["BABYLON.CurrentScreenBlock"] = CurrentScreenBlock;
@@ -459,6 +459,11 @@ export abstract class ReflectionTextureBaseBlock extends NodeMaterialBlock {
_TypeStore.RegisteredTypes["BABYLON.ReflectionTextureBaseBlock"] = ReflectionTextureBaseBlock;
@@ -449,6 +449,11 @@ export class TextureBlock extends NodeMaterialBlock {
_TypeStore.RegisteredTypes["BABYLON.TextureBlock"] = TextureBlock;
@@ -349,6 +349,11 @@ export class RefractionBlock extends NodeMaterialBlock {
this.linkRefractionWithTransparency = serializationObject.linkRefractionWithTransparency;
this.invertRefractionY = serializationObject.invertRefractionY;
_TypeStore.RegisteredTypes["BABYLON.RefractionBlock"] = RefractionBlock;
@@ -218,6 +218,11 @@ export class ParticleTextureBlock extends NodeMaterialBlock {
_TypeStore.RegisteredTypes["BABYLON.ParticleTextureBlock"] = ParticleTextureBlock;