void IDualityBackend.Shutdown() { if (activeInstance == this) { activeInstance = null; } if (DualityApp.ExecContext != DualityApp.ExecutionContext.Terminated) { for (int i = 0; i < this.perVertexTypeVBO.Count; i++) { WebGLBuffer handle = this.perVertexTypeVBO[i]; if (handle != null) { GL.DeleteBuffer(handle); } } this.perVertexTypeVBO.Clear(); for (int i = 0; i < this.perBatchEBO.Count; i++) { WebGLBuffer handle = this.perBatchEBO[i]; if (handle != null) { GL.DeleteBuffer(handle); } } this.perBatchEBO.Clear(); } }