|
@@ -4339,7 +4339,8 @@
|
|
* @param compression defines the compression used (null by default)
|
|
* @param compression defines the compression used (null by default)
|
|
* @param type defines the type fo the data (BABYLON.Engine.TEXTURETYPE_UNSIGNED_INT by default)
|
|
* @param type defines the type fo the data (BABYLON.Engine.TEXTURETYPE_UNSIGNED_INT by default)
|
|
*/
|
|
*/
|
|
- public updateRawTexture(texture: Nullable<InternalTexture>, data: Nullable<ArrayBufferView>, format: number, invertY: boolean, compression: Nullable<string> = null, type = Engine.TEXTURETYPE_UNSIGNED_INT): void { if (!texture) {
|
|
|
|
|
|
+ public updateRawTexture(texture: Nullable<InternalTexture>, data: Nullable<ArrayBufferView>, format: number, invertY: boolean, compression: Nullable<string> = null, type = Engine.TEXTURETYPE_UNSIGNED_INT): void {
|
|
|
|
+ if (!texture) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
// babylon's internalSizedFomat but gl's texImage2D internalFormat
|
|
// babylon's internalSizedFomat but gl's texImage2D internalFormat
|