summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-29 18:39:09 +1100
committerquou <quou@disroot.org>2024-12-29 18:39:51 +1100
commit4123d42aee69537f6fcede748a5d7b88277ef4af (patch)
tree2873af4aed3aba320ddb127b8dd2653f577bd57c /model.cpp
parentee50c66126d56d4b456046ed533f90abb0075363 (diff)
functions to destroy objects immediately
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.cpp b/model.cpp
index c3d01ac..f102a07 100644
--- a/model.cpp
+++ b/model.cpp
@@ -114,8 +114,8 @@ Asset* Model_Loader::load(Arena* a, Arena* s, Pack_File* f) {
ctx->copy(r->vbo, stage_verts);
ctx->copy(r->ibo, stage_indices);
dev->submit(*ctx);
- dev->destroy_buffer(stage_verts);
- dev->destroy_buffer(stage_indices);
+ dev->destroy_bufferi(stage_verts);
+ dev->destroy_bufferi(stage_indices);
return r;
}