Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Aug 26, 2017
1 parent 677c261 commit bb51e2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/render/painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ class Painter {

for (const frame of this.viewportFrames) {
this.gl.deleteTexture(frame.texture);
// TODO instead of deleting FBO on resize/destroying whole object,
// should we keep it around and only create a new texture next time?
this.gl.deleteFramebuffer(frame.fbo);
}
this.viewportFrames = [];
Expand Down Expand Up @@ -316,7 +314,7 @@ class Painter {

this._setup3DRenderbuffer();

let renderTarget = this.viewportFrames.pop() || new RenderTexture(this);
const renderTarget = this.viewportFrames.pop() || new RenderTexture(this);
renderTarget.attachRenderbuffer(this.depthRbo);

if (first) {
Expand Down

0 comments on commit bb51e2f

Please sign in to comment.