diff options
author | James Gregory <james@james.id.au> | 2013-08-04 22:11:42 -0700 |
---|---|---|
committer | James Gregory <james@james.id.au> | 2013-08-04 22:11:42 -0700 |
commit | 061676838eb80ebf845064f42f976b53895cf3e9 (patch) | |
tree | 5a66237d5b5198336819b4ff712c7ceed374c20b | |
parent | cf8e9ddc7a62fea13a6c0e10c6ff1fd09dc8577d (diff) |
Modify glDeleteBuffers changes per azakai's comments.
-rw-r--r-- | src/library_gl.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 965feae6..0d45a487 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -639,10 +639,8 @@ var LibraryGL = { // From spec: "glDeleteBuffers silently ignores 0's and names that do not // correspond to existing buffer objects." - if(buffer === null) - { - continue; - } + if(! buffer) continue; + Module.ctx.deleteBuffer(buffer); buffer.name = 0; GL.buffers[id] = null; |