Skip to content

Commit 0c9ad28

Browse files
committed
VAO buffer deletion on gc
1 parent c3444cc commit 0c9ad28

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/lambda/graphics/buffer/vao

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/graphics/buffer/vao/VAO.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class VAO(
197197
indicesCount = 0
198198
}
199199

200-
fun destroy() {
200+
protected fun finalize() {
201201
runOnGameThread {
202202
glDeleteBuffers(ibo)
203203
glDeleteBuffers(vbo)

0 commit comments

Comments
 (0)