Skip to content

Commit

Permalink
refactor(webgl): update destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 14, 2020
1 parent eacf9cf commit 4e6ebcf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/webgl/src/texture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4e6ebcf

Please sign in to comment.