Skip to content

Commit

Permalink
Ignore null allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed May 15, 2018
1 parent 85bef7d commit 23ba463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ module.exports = function createTextureSet (
texture.format,
texture.type,
data)
pool.zero.freeType(data)
if (data) pool.zero.freeType(data)
}
tempRestore()

Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// require('./destroy-bound-buffer')
// require('./flatten')
require('./context-loss')
require('./constructor')
// require('./context-loss')
// require('./constructor')
// require('./projection')
// require('./projection-lines')
// require('./frame')
Expand Down Expand Up @@ -54,7 +54,7 @@ require('./constructor')
// require('./framebuffer-mrt')
// require('./stats')
// require('./stats-commands')
// // require('./stats-gputime')
// require('./stats-gputime')
// require('./instance')
// require('./cube-fbo-resize')
// require('./dynamic-cube-fbo')
Expand Down

0 comments on commit 23ba463

Please sign in to comment.