Explorar o código

Update babylon.scene.ts

sebavan %!s(int64=7) %!d(string=hai) anos
pai
achega
154c76cacd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/babylon.scene.ts

+ 1 - 1
src/babylon.scene.ts

@@ -3212,7 +3212,7 @@
             if (this.textures) {
                 for (let i = 0; i < this.textures.length; i++) {
                     let texture = this.textures[i];
-                    if (texture && texture.renderList) {
+                    if (texture && (<RenderTargetTexture>texture).renderList) {
                         (<RenderTargetTexture>texture).freeRenderingGroups();
                     }
                 }