Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Dec 5, 2017
1 parent 7f9397d commit 5517a61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions src/gl/framebuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ class Framebuffer {
if (renderbuffer) gl.deleteRenderbuffer(renderbuffer);

gl.deleteFramebuffer(this.framebuffer);

// TODO we could actually preserve framebuffer on resize since it
// has no inherent size-dependent storage, and just destroy attachments...
}
}

Expand Down
1 change: 1 addition & 0 deletions src/render/draw_hillshade.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ function prepareHillshade(painter, tile) {
context.activeTexture.set(gl.TEXTURE0);

if (!tile.fbo) tile.fbo = painter.getTileFramebuffer(tile.tileSize);
let fbo = tile.fbo;

if (!fbo) {
const renderTexture = new Texture(context, {width: tileSize, height: tileSize, data: null}, gl.RGBA);
Expand Down

0 comments on commit 5517a61

Please sign in to comment.