mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
fix webgl1 crash in safari
This commit is contained in:
@@ -2009,7 +2009,7 @@ export function WebGLCmdFuncExecuteCmds (device: WebGLGFXDevice, cmdPackage: Web
|
||||
|
||||
if (glAttrib) {
|
||||
if (cache.glArrayBuffer !== glAttrib.glBuffer) {
|
||||
gl.bindBuffer(WebGL2RenderingContext.ARRAY_BUFFER, glAttrib.glBuffer);
|
||||
gl.bindBuffer(WebGLRenderingContext.ARRAY_BUFFER, glAttrib.glBuffer);
|
||||
cache.glArrayBuffer = glAttrib.glBuffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user