mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Merge pull request #1000 from VisualSJ/v1.2
WebGLRenderingContext does not exist
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user