Skip to content

Commit

Permalink
fix framebuffer restore bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolalysenko committed Aug 14, 2016
1 parent d711d00 commit 8e94ee0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/framebuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,8 @@ module.exports = function wrapFBOState (

function restoreFramebuffers () {
values(framebufferSet).forEach(function (fb) {
updateFramebuffer(fb._framebuffer)
fb.framebuffer = gl.createFramebuffer()
updateFramebuffer(fb)
})
}

Expand Down

0 comments on commit 8e94ee0

Please sign in to comment.