From 514d32ac2bbfb0687762de1c5656bcd24b325d28 Mon Sep 17 00:00:00 2001 From: happy wang Date: Sat, 7 Jan 2023 16:30:02 +0800 Subject: [PATCH] Update VertexArrayObject.ts `isAlive` is the attribute of `WebGLVertexArrayObjectOES`, which is the item of the list `vertexArrayObjects` --- src/layaAir/laya/webgl/VertexArrayObject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layaAir/laya/webgl/VertexArrayObject.ts b/src/layaAir/laya/webgl/VertexArrayObject.ts index d4e7cb26b7..7b31abee3c 100644 --- a/src/layaAir/laya/webgl/VertexArrayObject.ts +++ b/src/layaAir/laya/webgl/VertexArrayObject.ts @@ -189,7 +189,7 @@ export class VertexArrayObject { var contextWasLost = this.vertexArrayObjects !== undefined; if (contextWasLost) { for (var ii = 0; ii < this.vertexArrayObjects.length; ++ii) { - this.vertexArrayObjects.isAlive = false; + this.vertexArrayObjects[ii].isAlive = false; } } var gl = this.gl;