From be9eb8b54c1fd96d449a9357c8085b9cc8a4af91 Mon Sep 17 00:00:00 2001 From: jerrywwl Date: Thu, 24 Jan 2019 16:16:02 +0800 Subject: [PATCH] ban webgl debug tools --- cocos/gfx/webgl/webgl-device.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cocos/gfx/webgl/webgl-device.ts b/cocos/gfx/webgl/webgl-device.ts index ae5a1230c4..e16a86d647 100644 --- a/cocos/gfx/webgl/webgl-device.ts +++ b/cocos/gfx/webgl/webgl-device.ts @@ -1,4 +1,4 @@ -import * as WebGLDeveloperTools from 'webgl-debug'; +//import * as WebGLDeveloperTools from 'webgl-debug'; import { GFXBindingLayout, GFXBindingUnit, IGFXBindingLayoutInfo } from '../binding-layout'; import { GFXBuffer, GFXBufferSource, IGFXBufferInfo, IGFXIndirectBuffer } from '../buffer'; import { GFXCommandAllocator, IGFXCommandAllocatorInfo } from '../command-allocator'; @@ -254,9 +254,11 @@ export class WebGLGFXDevice extends GFXDevice { }; this._webGLRC = this._canvas.getContext('webgl', webGLCtxAttribs); + /* if (this._webGLRC && info.debug) { this._webGLRC = WebGLDeveloperTools.makeDebugContext(this._webGLRC, this._onWebGLError.bind(this)); } + */ } catch (err) { console.error(err); return false;