Browse Source

check for colorGradingTexture

David Catuhe 7 years ago
parent
commit
6c4db8fbe4
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/Materials/Textures/babylon.colorGradingTexture.ts

+ 5 - 0
src/Materials/Textures/babylon.colorGradingTexture.ts

@@ -87,6 +87,11 @@ module BABYLON {
             this._texture = texture;
 
             var callback = (text: string | ArrayBuffer) => {
+
+                if (typeof text !== "string") {
+                    return;
+                }
+
                 var data: Nullable<Uint8Array> = null;
                 var tempData: Nullable<Float32Array> = null;