Pārlūkot izejas kodu

Fix incorrect nullEngine _bindTextureDirectly return value

Scott Ramsby 7 gadi atpakaļ
vecāks
revīzija
0b96718107
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/Engine/babylon.nullEngine.ts

+ 2 - 1
src/Engine/babylon.nullEngine.ts

@@ -440,9 +440,10 @@
         protected _bindTextureDirectly(target: number, texture: InternalTexture): boolean {
             if (this._boundTexturesCache[this._activeChannel] !== texture) {
                 this._boundTexturesCache[this._activeChannel] = texture;
+                return false;
+            } else {
                 return true;
             }
-            return false;
         }
 
         /** @hidden */