diff --git a/cocos/scripting/js-bindings/script/jsb_opengl.js b/cocos/scripting/js-bindings/script/jsb_opengl.js index 1d76b73a8f..f7d0e92bed 100644 --- a/cocos/scripting/js-bindings/script/jsb_opengl.js +++ b/cocos/scripting/js-bindings/script/jsb_opengl.js @@ -79,7 +79,7 @@ gl.deleteTexture = function(texture) { gl._deleteTexture(texture_id); }; -gl.deleteBuffer = function(bufer) { +gl.deleteBuffer = function(buffer) { var buffer_id = buffer.buffer_id; // Accept numbers too. eg: gl.deleteBuffer(0) if( typeof buffer === 'number' ) @@ -88,7 +88,7 @@ gl.deleteBuffer = function(bufer) { gl._deleteBuffer(buffer_id); }; -gl.deleteRenderbuffer = function(bufer) { +gl.deleteRenderbuffer = function(buffer) { var buffer_id = buffer.renderbuffer_id; // Accept numbers too. eg: gl.deleteRenderbuffer(0) if( typeof buffer === 'number' ) @@ -97,7 +97,7 @@ gl.deleteRenderbuffer = function(bufer) { gl._deleteRenderbuffer(renderbuffer_id); }; -gl.deleteFramebuffer = function(bufer) { +gl.deleteFramebuffer = function(buffer) { var buffer_id = buffer.framebuffer_id; // Accept numbers too. eg: gl.deleteFramebuffer(0) if( typeof buffer === 'number' )