@babylonjs/core 9.9.0 → 9.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -194,6 +194,13 @@ export class AbstractEngine {
194
194
  _rebuildRenderTargetWrappers() {
195
195
  const currentState = this._renderTargetWrapperCache.slice(); // Do a copy because the rebuild will add proxies
196
196
  for (const renderTargetWrapper of currentState) {
197
+ // Wrapped textures (source === External) are host-owned; their format is opaque to Babylon, so we can't
198
+ // rebuild them. The host re-supplies a fresh handle via updateWrappedWebGLTexture /
199
+ // updateWrappedNativeTexture / updateWrappedWebGPUTexture from its onContextRestoredObservable handler.
200
+ // Scan all attachments for the multi-RT case (rtWrapper.texture only returns _textures[0]).
201
+ if (renderTargetWrapper.textures?.some((t) => t.source === 15 /* InternalTextureSource.External */)) {
202
+ continue;
203
+ }
197
204
  renderTargetWrapper._rebuild();
198
205
  }
199
206
  }
@@ -806,13 +813,13 @@ export class AbstractEngine {
806
813
  */
807
814
  // Not mixed with Version for tooling purpose.
808
815
  static get NpmPackage() {
809
- return "babylonjs@9.9.0";
816
+ return "babylonjs@9.9.1";
810
817
  }
811
818
  /**
812
819
  * Returns the current version of the framework
813
820
  */
814
821
  static get Version() {
815
- return "9.9.0";
822
+ return "9.9.1";
816
823
  }
817
824
  /**
818
825
  * Gets the HTML canvas attached with the current webGL context