fix webgl1 crash in safari

This commit is contained in:
jerrywwl
2019-03-14 20:09:38 +08:00
parent 8ad1efdaa6
commit 8d97a96852
+1 -1
View File
@@ -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;
}