@@ -116,7 +116,7 @@ module BABYLON {
case InternalTexture.DATASOURCE_RAW:
proxy = this._engine.createRawTexture(this._bufferView, this.baseWidth, this.baseHeight, this.format, this.generateMipMaps,
- this.invertY, this.samplingMode, this._compression);
+ this.invertY, this.samplingMode, this._compression, this.type);
proxy._swapAndDie(this);
this.isReady = true;
@@ -11,7 +11,7 @@
}
public update(data: ArrayBufferView): void {
- this._engine.updateRawTexture(this._texture, data, this.format, this._invertY);
+ this._engine.updateRawTexture(this._texture, data, this._texture!.format, this._texture!.invertY, undefined, this._texture!.type);
// Statics