mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
ban webgl debug tools
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user