|
@@ -36332,6 +36332,10 @@ var BABYLON;
|
|
|
// Remove from the scene if found
|
|
|
this._scene.reflectionProbes.splice(index, 1);
|
|
|
}
|
|
|
+ if (this._renderTargetTexture) {
|
|
|
+ this._renderTargetTexture.dispose();
|
|
|
+ this._renderTargetTexture = null;
|
|
|
+ }
|
|
|
};
|
|
|
return ReflectionProbe;
|
|
|
})();
|