From 4e6ebcf0ab26e87ac788a5a62244130afe6daa6a Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Sat, 14 Nov 2020 00:28:24 +0000 Subject: [PATCH] refactor(webgl): update destructuring --- packages/webgl/src/texture.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/webgl/src/texture.ts b/packages/webgl/src/texture.ts index 096a26fe60..70e8796992 100644 --- a/packages/webgl/src/texture.ts +++ b/packages/webgl/src/texture.ts @@ -87,8 +87,7 @@ export class Texture implements ITexture { const gl = this.gl; const decl = TEX_FORMATS[this.format]; const baseFormat = decl.format; - const type = this.type; - const format = this.format; + const { type, format } = this; if (opts.image !== undefined) { const level = opts.level || 0; const pos = opts.pos || [0, 0, 0];