Browse Source

onload Textures

Sebastien Vandenberghe 6 years ago
parent
commit
5ba6179a72
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Engines/webgpuEngine.ts

+ 2 - 0
src/Engines/webgpuEngine.ts

@@ -1098,6 +1098,8 @@ export class WebGPUEngine extends Engine {
                 aspect: "all",
             });
             webglEngineTexture.dispose();
+
+            onLoad && onLoad();
         };
         webglEngineTexture = this._decodeEngine.createCubeTexture(rootUrl, scene, files, noMipmap, onLoadInternal, onError, format, forcedExtension, createPolynomials, lodScale, lodOffset, fallback, excludeLoaders);