Skip to content

Commit 6c31969

Browse files
authored
removed rtt check in loadTextureTask (#745)
This check was causing issues when texture that are loaded are not properly handled. It also avoids an extra render to texture action if while there might not even be something to redraw. (texture still loading means nothing to draw extra which it does now).
2 parents 41c586e + 177897b commit 6c31969

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/core/CoreNode.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -940,16 +940,6 @@ export class CoreNode extends EventEmitter {
940940
texture.on('failed', this.onTextureFailed);
941941
texture.on('freed', this.onTextureFreed);
942942

943-
// If the parent is a render texture, the initial texture status
944-
// will be set to freed until the texture is processed by the
945-
// Render RTT nodes. So we only need to listen fo changes and
946-
// no need to check the texture.state until we restructure how
947-
// textures are being processed.
948-
if (this.parentHasRenderTexture) {
949-
this.notifyParentRTTOfUpdate();
950-
return;
951-
}
952-
953943
if (texture.state === 'loaded') {
954944
this.onTextureLoaded(texture, texture.dimensions!);
955945
} else if (texture.state === 'failed') {

0 commit comments

Comments
 (0)