Merge pull request #1000 from VisualSJ/v1.2

WebGLRenderingContext does not exist
This commit is contained in:
pandamicro
2016-08-02 11:34:01 +08:00
committed by GitHub
+3
View File
@@ -48,6 +48,9 @@ if (ENABLE_GL_STATE_CACHE) {
var _currBuffers = {};
// IE 10 WebGLRenderingContext does not exist
if (!window.WebGLRenderingContext) return;
WebGLRenderingContext.prototype.glBindBuffer = WebGLRenderingContext.prototype.bindBuffer;
WebGLRenderingContext.prototype.bindBuffer = function (target, buffer) {
if (_currBuffers[target] !== buffer) {