From 061676838eb80ebf845064f42f976b53895cf3e9 Mon Sep 17 00:00:00 2001 From: James Gregory Date: Sun, 4 Aug 2013 22:11:42 -0700 Subject: Modify glDeleteBuffers changes per azakai's comments. --- src/library_gl.js | 6 ++---- 1 file 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; -- cgit v1.2.3-18-g5258