我试了下,这三个分支都不行,报的错误和上面一样的
Uncaught TypeError: Cannot read property ‘binding’ of undefined
at WebGL2CmdFuncBindStates (webgl2-commands.ts:2186)
at WebGL2CmdFuncExecuteCmds (webgl2-commands.ts:2604)
at WebGL2GFXPrimaryCommandBuffer.execute (webgl2-primary-command-buffer.ts:107)
at ForwardStage.render (forward-stage.ts:178)
at ForwardFlow.render (render-flow.ts:188)
at ForwardFlow.render (forward-flow.ts:47)
at ForwardPipeline.render (render-pipeline.ts:374)
at Root.frameMove (root.ts:359)
at Director.mainLoop (director.ts:1054)
at callback (game.ts:792)
WebGL2CmdFuncBindStates @ webgl2-commands.ts:2186
WebGL2CmdFuncExecuteCmds @ webgl2-commands.ts:2604
execute @ webgl2-primary-command-buffer.ts:107
render @ forward-stage.ts:178
render @ render-flow.ts:188
render @ forward-flow.ts:47
render @ render-pipeline.ts:374
frameMove @ root.ts:359
mainLoop @ director.ts:1054
callback @ game.ts:792
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
index.js:1 ErrorEvent {isTrusted: true, message: “Uncaught TypeError: Cannot read property ‘binding’ of undefined”, filename: “http://localhost:7456/scripting/engine/cocos/core/gfx/webgl2/webgl2-commands.js”, lineno: 2844, colno: 30…}
(anonymous) @ index.js:1
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785
requestAnimationFrame (async)
callback @ game.ts:785